@codemirror/highlight
Advanced tools
Comparing version 0.19.6 to 0.19.7
@@ -0,1 +1,11 @@ | ||
## 0.19.7 (2022-01-03) | ||
### Bug fixes | ||
Make `classHighlightStyle` emit classes for `tag.className` and `tags.definition(tags.propertyName)`. Follow precedence level rename | ||
### New features | ||
Add a new highlighting tag `moduleKeyword`. | ||
## 0.19.6 (2021-09-23) | ||
@@ -2,0 +12,0 @@ |
@@ -397,2 +397,7 @@ import * as _lezer_common from '@lezer/common'; | ||
/** | ||
A [keyword](https://codemirror.net/6/docs/ref/#highlight.tags.keyword) related to defining or | ||
interfacing with modules. | ||
*/ | ||
moduleKeyword: Tag; | ||
/** | ||
An operator. | ||
@@ -638,2 +643,3 @@ */ | ||
* [`namespace`](https://codemirror.net/6/docs/ref/#highlight.tags.namespace) | ||
* [`className`](https://codemirror.net/6/docs/ref/#highlight.tags.className) | ||
* [`macroName`](https://codemirror.net/6/docs/ref/#highlight.tags.macroName) | ||
@@ -659,2 +665,4 @@ * [`propertyName`](https://codemirror.net/6/docs/ref/#highlight.tags.propertyName) | ||
to `"cmt-variableName cmt-definition"` | ||
* [`definition`](https://codemirror.net/6/docs/ref/#highlight.tags.definition)[`(propertyName)`](https://codemirror.net/6/docs/ref/#highlight.tags.propertyName) | ||
to `"cmt-propertyName cmt-definition"` | ||
*/ | ||
@@ -661,0 +669,0 @@ declare const classHighlightStyle: HighlightStyle; |
@@ -406,3 +406,3 @@ import { NodeProp, NodeType } from '@lezer/common'; | ||
// syntax tree and highlight style. | ||
const treeHighlighter = /*@__PURE__*/Prec.extend(/*@__PURE__*/ViewPlugin.fromClass(TreeHighlighter, { | ||
const treeHighlighter = /*@__PURE__*/Prec.high(/*@__PURE__*/ViewPlugin.fromClass(TreeHighlighter, { | ||
decorations: v => v.decorations | ||
@@ -686,2 +686,7 @@ })); | ||
/** | ||
A [keyword](https://codemirror.net/6/docs/ref/#highlight.tags.keyword) related to defining or | ||
interfacing with modules. | ||
*/ | ||
moduleKeyword: /*@__PURE__*/t(keyword), | ||
/** | ||
An operator. | ||
@@ -967,2 +972,3 @@ */ | ||
* [`namespace`](https://codemirror.net/6/docs/ref/#highlight.tags.namespace) | ||
* [`className`](https://codemirror.net/6/docs/ref/#highlight.tags.className) | ||
* [`macroName`](https://codemirror.net/6/docs/ref/#highlight.tags.macroName) | ||
@@ -988,2 +994,4 @@ * [`propertyName`](https://codemirror.net/6/docs/ref/#highlight.tags.propertyName) | ||
to `"cmt-variableName cmt-definition"` | ||
* [`definition`](https://codemirror.net/6/docs/ref/#highlight.tags.definition)[`(propertyName)`](https://codemirror.net/6/docs/ref/#highlight.tags.propertyName) | ||
to `"cmt-propertyName cmt-definition"` | ||
*/ | ||
@@ -1010,4 +1018,6 @@ const classHighlightStyle = /*@__PURE__*/HighlightStyle.define([ | ||
{ tag: /*@__PURE__*/tags.special(tags.variableName), class: "cmt-variableName2" }, | ||
{ tag: /*@__PURE__*/tags.definition(tags.propertyName), class: "cmt-propertyName cmt-definition" }, | ||
{ tag: tags.typeName, class: "cmt-typeName" }, | ||
{ tag: tags.namespace, class: "cmt-namespace" }, | ||
{ tag: tags.className, class: "cmt-className" }, | ||
{ tag: tags.macroName, class: "cmt-macroName" }, | ||
@@ -1014,0 +1024,0 @@ { tag: tags.propertyName, class: "cmt-propertyName" }, |
{ | ||
"name": "@codemirror/highlight", | ||
"version": "0.19.6", | ||
"version": "0.19.7", | ||
"description": "Syntax highlighting for the CodeMirror code editor", | ||
@@ -31,3 +31,3 @@ "scripts": { | ||
"@codemirror/rangeset": "^0.19.0", | ||
"@codemirror/state": "^0.19.0", | ||
"@codemirror/state": "^0.19.3", | ||
"@codemirror/view": "^0.19.0", | ||
@@ -34,0 +34,0 @@ "@lezer/common": "^0.15.0", |
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
110359
2671
Updated@codemirror/state@^0.19.3