-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split StringTemplate from HTML (#5192)
* Split StringTemplates from HTML Was originally added in #1117 as a HTML variant, but per #4979 language variants should be split. Default to using default HTML grammar. Will add a heuristic to differentiate from Smalltalk if needed. * Fix StringTemplate name and colour * Rename StringTemplate sample * Add StringTemplate grammar to index Uses `atom/language-html`; not ideal as ST-unique syntax isn't matched * Add .st heuristic * Add .st heuristic test * Fix syntax error in heuristics tester * Generalise part of Smalltalk .st heuristic * Further fix to Smalltalk heuristic * Fix unescaped character * Remove single quote * Replace StringTemplate grammar module Using dangmarm/stringtemplate-lang now * Update StringTemplate grammar link dangmarm/stringtemplate-lang * Replace tm_scope `source.stringtemplate` * Register StringTemplate tm_scope * Add grammar license info * Revert "Replace StringTemplate grammar module" This reverts commit 7c3bce2. * Revert StringTemplate grammar addition * Minor fix to heuristic * Replace raw space with Regex space char * Allow whitespace at start of doc * Add ^ and ' as Smalltalk characters * Escape ' properly * More accurate regex * Change regex from \w+ to \w* * Add other delimiters to StringTemplate heuristic * Use grammar added in Alhadis/language-etc@f41e1a4 * Updated cached license data Co-authored-by: Nixinova <Nixinova@users.noreply.github.com> Co-authored-by: John Gardner <gardnerjohng@gmail.com>
- Loading branch information
1 parent
6c1726b
commit fa41e7e
Showing
8 changed files
with
27 additions
and
3 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
File renamed without changes.
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
Submodule language-etc
updated
10 files
+2 −0 | README.md | |
+46 −0 | grammars/codeowners.cson | |
+15 −0 | grammars/gitattributes.cson | |
+4 −3 | grammars/ssh-config.cson | |
+306 −0 | grammars/string-template.cson | |
+38 −0 | samples/CODEOWNERS | |
+1 −1 | samples/lists/scope-previews.nanorc | |
+44 −0 | samples/template.default.st | |
+44 −0 | samples/template.html.st | |
+14 −0 | settings/editor.cson |
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