first-mate
Advanced tools
Comparing version 4.1.7 to 4.1.8
40
api.json
@@ -6,3 +6,3 @@ { | ||
"filename": "src/grammar-registry.coffee", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.7/src/grammar-registry.coffee#L11", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/src/grammar-registry.coffee#L11", | ||
"sections": [ | ||
@@ -23,3 +23,3 @@ { | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.7/src/grammar-registry.coffee#L36", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L46", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L56", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L64", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L76", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L97", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L107", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L122", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L139", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L152", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L167", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L176", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L185", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L192", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar-registry.coffee#L205", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar.coffee#L21", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/src/grammar.coffee#L21", | ||
"sections": [ | ||
@@ -444,3 +444,3 @@ { | ||
"sectionName": "Event Subscription", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.7/src/grammar.coffee#L61", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar.coffee#L73", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/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.7/src/grammar.coffee#L103", | ||
"srcUrl": "https://github.com/atom/first-mate/blob/v4.1.8/src/grammar.coffee#L103", | ||
"visibility": "Public", | ||
@@ -493,0 +493,0 @@ "summary": "Tokenize the line of text.", |
@@ -202,5 +202,9 @@ (function() { | ||
Pattern.prototype.handleMatch = function(stack, line, captureIndices, rule, endPatternMatch) { | ||
var contentScopeName, end, ruleToPush, scopeName, start, tags, _ref; | ||
var contentScopeName, end, ruleToPush, scopeName, start, tags, zeroWidthMatch, _ref; | ||
tags = []; | ||
zeroWidthMatch = captureIndices[0].start === captureIndices[0].end; | ||
if (this.popRule) { | ||
if (zeroWidthMatch && _.last(stack).zeroWidthMatch && _.last(stack).rule.anchorPosition === captureIndices[0].end) { | ||
return false; | ||
} | ||
contentScopeName = _.last(stack).contentScopeName; | ||
@@ -229,3 +233,4 @@ if (contentScopeName) { | ||
scopeName: scopeName, | ||
contentScopeName: contentScopeName | ||
contentScopeName: contentScopeName, | ||
zeroWidthMatch: zeroWidthMatch | ||
}); | ||
@@ -232,0 +237,0 @@ if (contentScopeName) { |
@@ -148,8 +148,9 @@ (function() { | ||
endPatternMatch = this.endPattern === scanner.patterns[index]; | ||
nextTags = scanner.handleMatch(result, ruleStack, line, this, endPatternMatch); | ||
return { | ||
nextTags: nextTags, | ||
tagsStart: firstCapture.start, | ||
tagsEnd: firstCapture.end | ||
}; | ||
if (nextTags = scanner.handleMatch(result, ruleStack, line, this, endPatternMatch)) { | ||
return { | ||
nextTags: nextTags, | ||
tagsStart: firstCapture.start, | ||
tagsEnd: firstCapture.end | ||
}; | ||
} | ||
}; | ||
@@ -156,0 +157,0 @@ |
{ | ||
"name": "first-mate", | ||
"version": "4.1.7", | ||
"version": "4.1.8", | ||
"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
16420
652261
19