Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an ACE editor mode for Jason #16

Open
cleberjamaral opened this issue Jan 16, 2020 · 1 comment
Open

Create an ACE editor mode for Jason #16

cleberjamaral opened this issue Jan 16, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cleberjamaral
Copy link
Collaborator

We are currently using erlang mode but there are several tokens that are not suitable, for instance, the #comment one. It is also necessary to create many others like for adding and removing beliefs, for plans, namespaces and so on.

Some material about how to create/extend a mode:
https://github.com/ajaxorg/ace/wiki/Creating-or-Extending-an-Edit-Mode
For testing highlighting script
https://ace.c9.io/tool/mode_creator.html
For testing regex:
https://regex101.com/

@cleberjamaral cleberjamaral self-assigned this Jan 22, 2020
@cleberjamaral
Copy link
Collaborator Author

We now have a grammar completely based on erlang one. At the current time, the only improvement is that it is correctly accepting comments in jason using double slash and block comments using /* */. The grammar now needs a big revision because many erlang tokens are not suitable in jason context and many jason tokens that are not covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant