Migrated syntax to use syntax registry

Created a basic syntax registry and migrated the current editor
to use it, in the future builtins should be loadedd better and this
editor should be able to compose multiple syntaxes
Merge pull request #1800 from perrito666/add_syntax_registry

Migrated syntax to use syntax registry