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

@codemirror/lang-javascript

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lang-javascript - npm Package Compare versions

Comparing version 0.19.4 to 0.19.5

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.19.5 (2022-01-11)
### Bug fixes
Add the `function` highlight modifier to variables used in tagged template expressions.
## 0.19.4 (2022-01-03)

@@ -2,0 +8,0 @@

13

dist/index.js
import { parser } from '@lezer/javascript';
import { LRLanguage, indentNodeProp, continuedIndent, flatIndent, delimitedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
import { styleTags, tags } from '@codemirror/highlight';
import { scope, scopedReference, scopedDefinition, styleTags, tags } from '@codemirror/highlight';
import { snippetCompletion, ifNotIn, completeFromList } from '@codemirror/autocomplete';

@@ -84,2 +84,11 @@

}),
/*@__PURE__*/scope.add({
"Block ForStatement FunctionDeclaration FunctionExpression ArrowFunction": "variable",
}),
/*@__PURE__*/scopedReference.add({
"VariableName": "variable",
}),
/*@__PURE__*/scopedDefinition.add({
"VariableDefinition": "variable"
}),
/*@__PURE__*/styleTags({

@@ -99,3 +108,3 @@ "get set async static": tags.modifier,

VariableName: tags.variableName,
"CallExpression/VariableName": /*@__PURE__*/tags.function(tags.variableName),
"CallExpression/VariableName TaggedTemplateExpression/VariableName": /*@__PURE__*/tags.function(tags.variableName),
VariableDefinition: /*@__PURE__*/tags.definition(tags.variableName),

@@ -102,0 +111,0 @@ Label: tags.labelName,

2

package.json
{
"name": "@codemirror/lang-javascript",
"version": "0.19.4",
"version": "0.19.5",
"description": "JavaScript language support for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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