Commit Graph

24 Commits

Author SHA1 Message Date
Indrek Ardel
dc4d6ad82a Only allow bundle bias if a file type was matched 2015-11-11 00:03:24 +02:00
Indrek Ardel
1239ba5f7b Prioritize file type matching over first line matching 2015-11-11 00:03:24 +02:00
Nathan Sobo
74d644ac73 Clear GrammarRegistry in AtomEnvironment::reset 2015-10-13 20:09:56 -06:00
Nathan Sobo
27762866c0 Build GrammarRegistry in Atom environment constructor
As part of this, we no longer serialize/deserialize the grammar registry
instance, but instead just restore the grammarOverridesByPath state.
Ultimately I’d like to store these overrides on the editor instead.
2015-10-07 15:24:52 -05:00
Nathan Sobo
4e5cbdc3f6 Remove includeDeprecatedAPIs reference from GrammarRegistry 2015-09-22 10:37:15 -06:00
Nathan Sobo
faf3b4d6e5 🔥 Remove deprecations from GrammarRegistry 2015-09-22 10:37:08 -06:00
Max Brunsfeld
2493da0a84 Rename fileTypesByScope -> customFileTypes 2015-08-12 17:55:19 -07:00
Max Brunsfeld
9e9f670ac3 👕 Replace ! -> 'not' 2015-07-30 17:39:55 -07:00
Max Brunsfeld
aa8fb391aa Handle ties between custom and built-in grammar file types 2015-07-30 17:39:55 -07:00
Max Brunsfeld
989bb86199 Start work on custom scope -> filetypes configuration 2015-07-30 17:39:55 -07:00
Kevin Sawicki
00505188fa Add spec for grammar score tie-breaking 2015-05-18 15:30:14 -07:00
Kevin Sawicki
8b25eb4f0f Guard against missing best match 2015-05-18 15:30:14 -07:00
Kevin Sawicki
403f7cbc6b Favor non bundle packages when breaking ties 2015-05-18 15:30:14 -07:00
Machiste Quintana
2bb2022b5b 👕 2015-04-07 00:05:19 -04:00
Kevin Sawicki
ec5cd75350 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00
Kevin Sawicki
7d592c8b78 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00
Kevin Sawicki
f34b6c9e95 Conditionally include deprecations in GrammarRegistry 2015-04-03 11:29:13 -07:00
Kevin Sawicki
aa4d294c19 Implement clearObservers in GrammarRegistry 2015-04-02 17:19:20 -07:00
Max Brunsfeld
c7771ffde9 Add Config::getAll, deprecate ::settingsForScopeDescriptor
Signed-off-by: Nathan Sobo <nathan@github.com>
2014-12-29 11:01:46 -08:00
Nathan Sobo
95d6ab1d4f Add legacy ‘Syntax’ deserializer for GrammarRegistry 2014-11-20 15:28:37 -07:00
Nathan Sobo
f475552673 Fix local variable name 2014-11-20 13:10:51 -07:00
Nathan Sobo
32f2a95f07 Make GrammarRegistry::selectGrammar public since we use it in specs 2014-11-20 11:44:37 -07:00
Nathan Sobo
d53d01d95b Replace atom.syntax with atom.grammars 2014-11-20 11:42:49 -07:00
Nathan Sobo
131522f93d Rename Syntax to GrammarRegistry 2014-11-20 11:38:01 -07:00