-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#265 Backport Dart lexer from Notepad4
This patch adds the Dart lexer from the Notepad4 editor originally created by Zufu Liu. Some changes have been made to make it compile and work in Scintilla since Notepad4 contains a modified Scintilla version. Also, some features of the Notepad4 lexer have been removed/changed: - folding has been modified to use simple folding like the rest of Scintilla lexers and not folding of the previous line based on brace presence on the next line like Notepad4 - "semi-syntactic" coloring of Notepad4 which colors words following a keyword (such as coloring Foo in "class Foo") has been removed as this is not performed in other Scintilla lexers - coloring of string dict keys has been removed so string keys are colored as strings and not as keys - highlighting of tasks such as TODOs in comments has been removed as it isn't present in other Scintilla lexers - various state arithmetic tricks have been eliminated in favor of explicit state comparisons which I find more legible and less error-prone - coloring states and keywords have been renamed slightly - keywords at index 3 have been reserved for caller-supplied type names using SCI_SETKEYWORDS like in the C lexer (which we use in Geany to supply type names obtained using ctags) Fixes #58.
- Loading branch information
1 parent
6ac5d7e
commit fc57a60
Showing
14 changed files
with
1,673 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.