-
Notifications
You must be signed in to change notification settings - Fork 594
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
Javascript Class #934
Comments
Possible of course, needs someone doing it :) For the highlighting part, it should be very easy, a mere matter of updating the keywords in data/filetypes.javascript to include the new ones. Grammar didn't change so much AFAIK, so it should be enough. For the tagging part it'll be a little more works as it'll require updating the parser to really understand those new syntaxes, but it's something that will likely be done by Somebody at some point in the (probably not so distant) future. S/A universal-ctags/ctags#780 |
It would be interesting to support texts like |
I implemented support for template strings in Universal-CTags, but apparently I never updated the parser in Geany (??). |
I guess, because if I put thing like |
Well, if the example The highlighting part might be missing completely though, I'm not sure -- that'd be Scintilla. |
It gonna take time to do these 2 things? |
Importing the CTags fixes should be relatively easy. Fixing the highlighter will be a lot trickier, esp. because template strings are tricky in the sense they basically require running the parser recursively. I will import the CTags change "soon", but probably not before next week. |
You'll close this issue when the fix will be done? |
Yeah, sure. |
I can see the classes are coming soon I guess, there's some news about the quotes? |
The classes have now the color thing, but not displayed in the "classes" part? |
There is an issue on Scintilla bug tracker for template strings support: https://sourceforge.net/p/scintilla/feature-requests/1112/ [lexer_properties]
lexer.cpp.backquoted.strings=1 |
ES6 keywords |
Can expect backquote support some day? |
@ZatsuneNoMokou proper one would need someone to take the task and implement it in Scintilla. If setting I would be interesting to get some testing of using |
Just did it, at least there won't be any annoying effects with stuff like where the quote was considered as a string begin.
|
This doesn't support nested templates or escaped `es, but at least handles the most obvious cases for now. Part of #934.
@ZatsuneNoMokou okay thanks. This is added in 9fdb014 |
@nahidakbar 1.27 is too old to include the change referenced above, you need at least 1.30.1. |
Even current master doesn't have support for ES6 classes in the symbols tree, we still have to import the changes I made in U-CTags. |
ES6 have added class system like it is shown in Mozilla Doc page, could it be possible to have syntax highlight and all?
The text was updated successfully, but these errors were encountered: