Commit Graph

13 Commits

Author SHA1 Message Date
Max Brunsfeld
adbd540029 Only return overridden language ids in .getGrammarOverride 2018-02-15 12:29:48 -08:00
Max Brunsfeld
4adfba47cc Support legacyScopeName field on tree-sitter grammars
* Use the field for mapping scope names in GrammarRegistry.grammarForId
* Use the field for adapting legacy scoped settings to work with tree-sitter parsers

Signed-off-by: Nathan Sobo <nathan@github.com>
2017-12-15 16:57:36 -08:00
Max Brunsfeld
f3715779e5 Support contentRegExp field on grammars, to match more than one line
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-12-05 16:26:24 -08:00
Max Brunsfeld
273d708a48 Add preference for using Tree-sitter parsers 2017-11-30 14:21:53 -08:00
Max Brunsfeld
894ce56821 Don't use JS as an example in removeGrammar test 2017-11-30 09:39:30 -08:00
Max Brunsfeld
9762685106 Start work on loading tree-sitter grammars in GrammarRegistry 2017-11-30 09:31:08 -08:00
Max Brunsfeld
e08091f193 Make assignLanguageMode take a language id instead of a language name 2017-11-28 11:14:29 -08:00
Max Brunsfeld
4810d13094 Fix memory leak in .maintainLanguageMode 2017-11-22 11:41:55 -08:00
Max Brunsfeld
be3010e8f7 Use atom's null grammar when assignLanguageMode is called w/ null 2017-11-21 14:59:42 -08:00
Max Brunsfeld
d52c4bc33b Serialize the grammar registry 2017-11-20 14:50:00 -08:00
Max Brunsfeld
b2fcb0cbe2 Integrate the 2 grammar registry specs 2017-11-20 13:53:19 -08:00
Max Brunsfeld
f6c2e0eba4 Allow setting the null language mode w/ assignLanguageMode(buffer, null) 2017-11-20 09:48:00 -08:00
Max Brunsfeld
351f96d5dd Iterate on GrammarRegistry APIs
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-11-06 09:36:06 -08:00