kangax / textmate-js-language-syntax-file

Better JS language syntax file for Textmate
91 stars 3 forks source link

Standard JSON .plist file #3

Open yangchenyun opened 12 years ago

yangchenyun commented 12 years ago

Hi, could you please provide standard JSON files which then could be converted to XML version 1 which could be used as .tmLanguage file in textmate bundle? http://blog.dyve.net/convert-plist-files-from-binary-to-xml-and-vi

kangax commented 12 years ago

What do you mean by "standard JSON files"? Is existing .plist file not standard?

yangchenyun commented 12 years ago

Saying "standard JSON", I mean the grammar. The plist file separates object properties with ';', but JSON uses comma(,); The plist file allows string literal wrapped with single quote ('), but JSON only allows double quote ("); the plist file allows property name to be identifier, but JSON only allows JSON string(wrapped in double quotes) etc.
http://www.json.org/

yangchenyun commented 12 years ago

I think the standard xml .plist file will works too, as there are tools to convert it to a json file.

https://gist.github.com/1045696

kangax commented 12 years ago

If there are tools, I can close this issue? Patch would be welcome, of course.

yangchenyun commented 12 years ago

Not really, the .plist file in the repository is not standard JSON file and couldn't be converted with available tools..