@codemirror/lang-javascript
Advanced tools
Comparing version 0.19.4 to 0.19.5
@@ -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 @@ |
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, |
{ | ||
"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
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
33014
524