Repository navigation
|
I saw your comment on #402 (comment) and I have read the newly added lbstanza.cpp. I want to know how to convert stanza.tmLanguage.json to lbstanza.cpp. Is there an automated tool? |
Replies: 8 comments 13 replies
|
With the usual tool, as I said ecode now understands TextMate grammars: This step is not needed at all, conversion to C++ is done to integrate the grammar into ecode build (and to load it faster), you don't need to do that. Just put your grammar into the languages folder, it will overwrite any existing grammar if the grammar already exists in the ecode build. |
|
And this becomes a mess now. I don't even know which dialect of syntax highlighting rules is being used in .cpp files. The Lua patterns one is easy to spot. But Lua patterns mixed with RegEx and TextMate grammar (also full of RegEx) are almost the same. |
|
Another side effect is no one will continue to write in the Lua patterns one anymore. TextMate is superior and more portable. |
If I have both the Lua patterns one ( |
|
Is VSCode's For example: https://github.com/covscript/covscript-vscode/blob/master/language-configuration.json |
|
The TextMate grammar file name is not https://github.com/covscript/covscript-vscode/blob/master/syntaxes/covscript.cson.json |
|
Quoted your comment on #402 (comment):
It seems the file extensions are covered in For example: https://github.com/objeck/objeck-lang/blob/master/docs/syntax/vscode/package.json |
|
https://github.com/objeck/objeck-lang/blob/master/docs/syntax/vscode/syntaxes/objeck.tmLanguage.json |
With the usual tool, as I said ecode now understands TextMate grammars:
ecode --convert-lang-path=/path/to/grammar.tmLanguage.json --convert-lang-output=/output/path/This step is not needed at all, conversion to C++ is done to integrate the grammar into ecode build (and to load it faster), you don't need to do that. Just put your grammar into the languages folder, it will overwrite any existing grammar if the grammar already exists in the ecode build.