diff --git a/grammars/DiveScript.cson b/grammars/DiveScript.cson new file mode 100644 index 0000000..52dc857 --- /dev/null +++ b/grammars/DiveScript.cson @@ -0,0 +1,41 @@ +scopeName: "DiveScene"; +fileTypes: ["scene", "template"]; + +name: "Dive Engine File"; +patterns: [ + { + name: "constant.numeric.integer" + match: "#[0-9A-Fa-f]{6}" + } + { + name: "constant.numeric.integer" + match: "( |=)[+-]?\\d+[iI]" + } + { + name: "constant.numeric.float" + match: "(^|\\s|=|\\n)\\d{0,}\\.?\\d{1,}[Ff]" + } + { + name: "variable" + match: "\\$[A-Za-z0-9]*" + } + { + name: "comment" + match: "^#.*\n" + } + { + name: "keyword.control" + match: "(Template|Component|End Component)" + } + { + name: "string.quoted.double" + begin: "\"" + end: "\"" + patterns: [ + { + name: "keyword.control" + match: "\\\\[A-Za-z]" + } + ] + } +]; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..012a269 --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "DiveEngine", + "description": "DiveEngine Scene File Syntax", + "version": "0.0.1", + "engines": { + "atom": "*", + "node": "*" + } +} \ No newline at end of file