@codemirror/language
Advanced tools
Comparing version 6.9.1 to 6.9.2
@@ -0,1 +1,7 @@ | ||
## 6.9.2 (2023-10-24) | ||
### Bug fixes | ||
Allow `StreamParser` tokens get multiple highlighting tags. | ||
## 6.9.1 (2023-09-20) | ||
@@ -2,0 +8,0 @@ |
@@ -1142,7 +1142,9 @@ import { NodeProp, SyntaxNode, Parser, Tree, Input, TreeFragment, NodeType } from '@lezer/common'; | ||
of the tags in | ||
[`tags`](https://lezer.codemirror.net/docs/ref#highlight.tags), | ||
or such a name suffixed by one or more tag | ||
[`tags`](https://lezer.codemirror.net/docs/ref#highlight.tags) | ||
or [`tokenTable`](https://codemirror.net/6/docs/ref/#language.StreamParser.tokenTable), or such a | ||
name suffixed by one or more tag | ||
[modifier](https://lezer.codemirror.net/docs/ref#highlight.Tag^defineModifier) | ||
names, separated by periods. For example `"keyword"` or | ||
"`variableName.constant"`. | ||
"`variableName.constant"`, or a space-separated set of such | ||
token types. | ||
@@ -1179,6 +1181,6 @@ It is okay to return a zero-length token, but only if that | ||
token name that exists as a property in this object, the | ||
corresponding tag will be assigned to the token. | ||
corresponding tags will be assigned to the token. | ||
*/ | ||
tokenTable?: { | ||
[name: string]: Tag; | ||
[name: string]: Tag | readonly Tag[]; | ||
}; | ||
@@ -1185,0 +1187,0 @@ } |
{ | ||
"name": "@codemirror/language", | ||
"version": "6.9.1", | ||
"version": "6.9.2", | ||
"description": "Language support infrastructure for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
292009
6259