Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

first-mate

Package Overview
Dependencies
Maintainers
5
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

first-mate - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc