@codemirror/lang-cpp
Advanced tools
Comparing version
@@ -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 @@ |
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 @@ ] |
{ | ||
"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
2
-33.33%7968
-41.3%87
-49.71%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated