提交 f924875c 编写于 作者: M Martin Aeschlimann

[json] improve text mate tokenizer, enable as default

上级 aba9d6bf
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"mimetypes": ["application/json"] "mimetypes": ["application/json"]
}], }],
"grammars": [{ "grammars": [{
// "language": "json" : commented out for now "language": "json",
"scopeName": "source.json", "scopeName": "source.json",
"path": "./syntaxes/JSON.tmLanguage" "path": "./syntaxes/JSON.tmLanguage"
}] }]
......
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
<key>comment</key> <key>comment</key>
<string>the JSON object key</string> <string>the JSON object key</string>
<key>include</key> <key>include</key>
<string>#string</string> <string>#objectkey</string>
</dict> </dict>
<dict> <dict>
<key>include</key> <key>include</key>
...@@ -283,6 +283,48 @@ ...@@ -283,6 +283,48 @@
</dict> </dict>
<key>name</key> <key>name</key>
<string>string.quoted.double.json</string> <string>string.quoted.double.json</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#stringcontent</string>
</dict>
</array>
</dict>
<key>objectkey</key>
<dict>
<key>begin</key>
<string>"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.support.type.property-name.begin.json</string>
</dict>
</dict>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.support.type.property-name.end.json</string>
</dict>
</dict>
<key>name</key>
<string>support.type.property-name.json</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#stringcontent</string>
</dict>
</array>
</dict>
<key>stringcontent</key>
<dict>
<key>patterns</key> <key>patterns</key>
<array> <array>
<dict> <dict>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册