You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@codemirror/lang-cpp

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lang-cpp - npm Package Compare versions

Comparing version

to
0.20.0

6

CHANGELOG.md

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

## 0.20.0 (2022-04-20)
### Breaking changes
Update dependencies to 0.20.0
## 0.19.1 (2021-08-11)

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

43

dist/index.js
import { parser } from '@lezer/cpp';
import { LRLanguage, indentNodeProp, continuedIndent, flatIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
import { styleTags, tags } from '@codemirror/highlight';

@@ -24,44 +23,2 @@ /**

BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }
}),
/*@__PURE__*/styleTags({
"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using __attribute__ __declspec __based": tags.definitionKeyword,
"extern MsCallModifier MsPointerModifier extern static register inline const volatile restrict _Atomic mutable constexpr virtual explicit VirtualSpecifier Access": tags.modifier,
"if else switch for while do case default return break continue goto throw try catch": tags.controlKeyword,
"new sizeof delete static_assert": tags.operatorKeyword,
"NULL nullptr": tags.null,
this: tags.self,
"True False": tags.bool,
"TypeSize PrimitiveType": /*@__PURE__*/tags.standard(tags.typeName),
TypeIdentifier: tags.typeName,
FieldIdentifier: tags.propertyName,
"CallExpression/FieldExpression/FieldIdentifier": /*@__PURE__*/tags.function(tags.propertyName),
StatementIdentifier: tags.labelName,
Identifier: tags.variableName,
"CallExpression/Identifier": /*@__PURE__*/tags.function(tags.variableName),
"CallExpression/ScopedIdentifier/Identifier": /*@__PURE__*/tags.function(tags.variableName),
DestructorName: tags.name,
NamespaceIdentifier: tags.namespace,
OperatorName: tags.operator,
ArithOp: tags.arithmeticOperator,
LogicOp: tags.logicOperator,
BitOp: tags.bitwiseOperator,
CompareOp: tags.compareOperator,
AssignOp: tags.definitionOperator,
UpdateOp: tags.updateOperator,
LineComment: tags.lineComment,
BlockComment: tags.blockComment,
Number: tags.number,
String: tags.string,
"RawString SystemLibString": /*@__PURE__*/tags.special(tags.string),
CharLiteral: tags.character,
EscapeSequence: tags.escape,
PreProcArg: tags.meta,
"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif": tags.processingInstruction,
MacroName: /*@__PURE__*/tags.special(tags.name),
"( )": tags.paren,
"[ ]": tags.squareBracket,
"{ }": tags.brace,
"< >": tags.angleBracket,
". ->": tags.derefOperator,
", ;": tags.separator
})

@@ -68,0 +25,0 @@ ]

7

package.json
{
"name": "@codemirror/lang-cpp",
"version": "0.19.1",
"version": "0.20.0",
"description": "C++ language support for the CodeMirror code editor",

@@ -29,5 +29,4 @@ "scripts": {

"dependencies": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/language": "^0.19.0",
"@lezer/cpp": "^0.15.0"
"@codemirror/language": "^0.20.0",
"@lezer/cpp": "^0.16.0"
},

@@ -34,0 +33,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.