Socket
Socket
Sign inDemoInstall

@codemirror/highlight

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/highlight - npm Package Compare versions

Comparing version 0.19.6 to 0.19.7

10

CHANGELOG.md

@@ -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;

12

dist/index.js

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

4

package.json
{
"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

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