codemirror-json5
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -103,3 +103,3 @@ import { syntaxTree, LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language'; | ||
'True False': tags.bool, | ||
null: tags.null, | ||
Null: tags.null, | ||
', PropertyColon': tags.separator, | ||
@@ -106,0 +106,0 @@ '[ ]': tags.squareBracket, |
{ | ||
"name": "codemirror-json5", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JSON5 support for Codemirror 6", | ||
@@ -13,2 +13,6 @@ "main": "dist/index.cjs", | ||
"sideEffects": false, | ||
"scripts": { | ||
"test": "cm-runtests", | ||
"prepare": "cm-buildhelper src/index.ts" | ||
}, | ||
"keywords": [ | ||
@@ -40,6 +44,3 @@ "Codemirror", | ||
"url": "https://github.com/dimfeld/codemirror-json5" | ||
}, | ||
"scripts": { | ||
"test": "cm-runtests" | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ # codemirror-json5 | ||
Beyond the basic support, it provides a linter and state fields the expose: | ||
Beyond the basic support, it provides a linter and state fields that expose: | ||
@@ -38,3 +38,3 @@ - The parsed object produced by the JSON5 parser, so that your surrounding code can use that result instead of parsing it twice. | ||
function getJson5Info(state: EditorState) { | ||
const parsed = state.field(json5ParseCache); | ||
const object = state.field(json5ParseCache); | ||
const { path } = state.field(jsonCursorPath); | ||
@@ -41,0 +41,0 @@ |
@@ -34,3 +34,3 @@ import { | ||
'True False': t.bool, | ||
null: t.null, | ||
Null: t.null, | ||
', PropertyColon': t.separator, | ||
@@ -37,0 +37,0 @@ '[ ]': t.squareBracket, |
Sorry, the diff of this file is not supported yet
26865