Here's a lexer that adds support for Hollywood scripts (.hws) to Scintilla. The patch is against the latest Scintilla version 4.2.1. See here for more information on Hollywood: https://en.wikipedia.org/wiki/Hollywood_(programming_language)
This appears a little outdated with ILexer instead of the current ILexer4. lvOriginal -> lvRelease4. It also has an #ifdef SCI_NAMESPACE to use the namespace but SCI_NAMESPACE is no longer set and the namespace is always on.
The quickest way to update a lexer to ILexer4 with simple or no-op implementations of the additional methods is to derive from DefaultLexer instead of ILexer and include the DefaultLexer header. See LexPython.cxx for an example.
There are also a couple of unnecessary elements: styleBeforeKeyword and IsLetter.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, I've fixed this now. New patch attached. I'm still on Scintilla 3.7.2 because that is the version that is shipped with wxWidgets. Even the latest version of wxWidgets from two weeks ago doesn't come with a newer version of Scintilla :-( So this explains why my lexer used an obsolete interface because I'm using Scintilla through wxWidgets.
This appears a little outdated with ILexer instead of the current ILexer4. lvOriginal -> lvRelease4. It also has an
#ifdef SCI_NAMESPACEto use the namespace but SCI_NAMESPACE is no longer set and the namespace is always on.The quickest way to update a lexer to ILexer4 with simple or no-op implementations of the additional methods is to derive from DefaultLexer instead of ILexer and include the DefaultLexer header. See LexPython.cxx for an example.
There are also a couple of unnecessary elements: styleBeforeKeyword and IsLetter.
Ok, I've fixed this now. New patch attached. I'm still on Scintilla 3.7.2 because that is the version that is shipped with wxWidgets. Even the latest version of wxWidgets from two weeks ago doesn't come with a newer version of Scintilla :-( So this explains why my lexer used an obsolete interface because I'm using Scintilla through wxWidgets.
Committed as [abba8b].
Related
Commit: [abba8b]
Committed as [abba8b].
Related
Commit: [abba8b]