first-mate
Advanced tools
Comparing version 4.1.5 to 4.1.6
40
api.json
@@ -6,3 +6,3 @@ { | ||
"filename": "src/grammar-registry.coffee", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L11", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L11", | ||
"sections": [ | ||
@@ -23,3 +23,3 @@ { | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L36", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L36", | ||
"visibility": "Public", | ||
@@ -54,3 +54,3 @@ "summary": "Invoke the given callback when a grammar is added to the registry.", | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L46", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L46", | ||
"visibility": "Public", | ||
@@ -85,3 +85,3 @@ "summary": "Invoke the given callback when a grammar is updated due to a grammar\nit depends on being added or removed from the registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L56", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L56", | ||
"visibility": "Public", | ||
@@ -100,3 +100,3 @@ "summary": "Get all the grammars in this registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L64", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L64", | ||
"visibility": "Public", | ||
@@ -123,3 +123,3 @@ "summary": "Get a grammar with the given scope name.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L76", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L76", | ||
"visibility": "Public", | ||
@@ -146,3 +146,3 @@ "summary": "Add a grammar to this registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L97", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L97", | ||
"visibility": "Public", | ||
@@ -169,3 +169,3 @@ "summary": "Remove the grammar with the given scope name.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L107", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L107", | ||
"visibility": "Public", | ||
@@ -192,3 +192,3 @@ "summary": "Read a grammar synchronously but don't add it to the registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L122", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L122", | ||
"visibility": "Public", | ||
@@ -235,3 +235,3 @@ "summary": "Read a grammar asynchronously but don't add it to the registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L139", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L139", | ||
"visibility": "Public", | ||
@@ -258,3 +258,3 @@ "summary": "Read a grammar synchronously and add it to this registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L152", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L152", | ||
"visibility": "Public", | ||
@@ -301,3 +301,3 @@ "summary": "Read a grammar asynchronously and add it to the registry.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L167", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L167", | ||
"visibility": "Public", | ||
@@ -324,3 +324,3 @@ "summary": "Get the grammar override for the given file path.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L176", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L176", | ||
"visibility": "Public", | ||
@@ -353,3 +353,3 @@ "summary": "Set the grammar override for the given file path.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L185", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L185", | ||
"visibility": "Public", | ||
@@ -376,3 +376,3 @@ "summary": "Remove the grammar override for the given file path.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L192", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L192", | ||
"visibility": "Public", | ||
@@ -391,3 +391,3 @@ "summary": "Remove all grammar overrides.", | ||
"sectionName": "Managing Grammars", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar-registry.coffee#L205", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar-registry.coffee#L205", | ||
"visibility": "Public", | ||
@@ -427,3 +427,3 @@ "summary": "Select a grammar for the given file path and file contents.", | ||
"filename": "src/grammar.coffee", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar.coffee#L21", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar.coffee#L21", | ||
"sections": [ | ||
@@ -444,3 +444,3 @@ { | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar.coffee#L61", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar.coffee#L61", | ||
"visibility": "Public", | ||
@@ -467,3 +467,3 @@ "summary": "Invoke the given callback when this grammar is updated due to a\ngrammar it depends on being added or removed from the registry.", | ||
"sectionName": "Tokenizing", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar.coffee#L73", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar.coffee#L73", | ||
"visibility": "Public", | ||
@@ -490,3 +490,3 @@ "summary": "Tokenize all lines in the given text.", | ||
"sectionName": "Tokenizing", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.5/src/grammar.coffee#L103", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.6/src/grammar.coffee#L103", | ||
"visibility": "Public", | ||
@@ -493,0 +493,0 @@ "summary": "Tokenize the line of text.", |
@@ -88,3 +88,3 @@ (function() { | ||
Grammar.prototype.tokenizeLine = function(line, ruleStack, firstLine, compatibilityMode) { | ||
var contentScopeName, initialRule, initialRuleStackLength, lastRule, lastSymbol, match, nextTags, openScopeTags, penultimateRule, popStack, position, previousPosition, previousRuleStackLength, rule, scopeName, tag, tags, tagsEnd, tagsStart, tokenCount, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2, _ref3, _ref4; | ||
var contentScopeName, initialRule, initialRuleStackLength, lastRule, lastSymbol, match, nextTags, openScopeTags, penultimateRule, popStack, position, previousPosition, previousRuleStackLength, rule, scopeName, tag, tags, tagsEnd, tagsStart, tokenCount, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2, _ref3, _ref4, _ref5; | ||
if (firstLine == null) { | ||
@@ -177,3 +177,9 @@ firstLine = false; | ||
if (ruleStack.length > 1) { | ||
ruleStack.pop(); | ||
_ref2 = ruleStack.pop(), scopeName = _ref2.scopeName, contentScopeName = _ref2.contentScopeName; | ||
if (contentScopeName) { | ||
tags.push(this.endIdForScope(contentScopeName)); | ||
} | ||
if (scopeName) { | ||
tags.push(this.endIdForScope(scopeName)); | ||
} | ||
} else { | ||
@@ -186,3 +192,3 @@ if (position < line.length || (line.length === 0 && tags.length === 0)) { | ||
} else if (ruleStack.length > previousRuleStackLength) { | ||
_ref2 = ruleStack.slice(-2), (_ref3 = _ref2[0], penultimateRule = _ref3.rule), (_ref4 = _ref2[1], lastRule = _ref4.rule); | ||
_ref3 = ruleStack.slice(-2), (_ref4 = _ref3[0], penultimateRule = _ref4.rule), (_ref5 = _ref3[1], lastRule = _ref5.rule); | ||
if ((lastRule != null) && lastRule === penultimateRule) { | ||
@@ -189,0 +195,0 @@ popStack = true; |
{ | ||
"name": "first-mate", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "TextMate helpers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/first-mate.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
651946
16414