lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json in gollum-3.1.2 vs lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_glsl.json in gollum-3.1.3
- old
+ new
@@ -1,185 +1,127 @@
-[
- {
- "state": "start",
- "data": [
- [ "keyword", "uniform" ],
- [ "text", " " ],
- [ "keyword", "float" ],
- [ "text", " " ],
- [ "identifier", "amplitude" ],
- [ "punctuation.operator", ";" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "keyword", "attribute" ],
- [ "text", " " ],
- [ "keyword", "float" ],
- [ "text", " " ],
- [ "identifier", "displacement" ],
- [ "punctuation.operator", ";" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "keyword", "varying" ],
- [ "text", " " ],
- [ "keyword", "vec3" ],
- [ "text", " " ],
- [ "identifier", "vNormal" ],
- [ "punctuation.operator", ";" ]
- ]
- },
- {
- "state": "start",
- "data": []
- },
- {
- "state": "start",
- "data": [
- [ "keyword", "void" ],
- [ "text", " " ],
- [ "entity.name.function", "main" ],
- [ "paren.lparen", "(" ],
- [ "paren.rparen", ")" ],
- [ "text", " " ],
- [ "paren.lparen", "{" ]
- ]
- },
- {
- "state": "start",
- "data": []
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "vNormal" ],
- [ "text", " " ],
- [ "keyword.operator", "=" ],
- [ "text", " " ],
- [ "identifier", "normal" ],
- [ "punctuation.operator", ";" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "comment", "// multiply our displacement by the" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "comment", "// amplitude. The amp will get animated" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "comment", "// so we'll have animated displacement" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "vec3" ],
- [ "text", " " ],
- [ "identifier", "newPosition" ],
- [ "text", " " ],
- [ "keyword.operator", "=" ],
- [ "text", " " ],
- [ "identifier", "position" ],
- [ "text", " " ],
- [ "keyword.operator", "+" ],
- [ "text", " " ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "normal" ],
- [ "text", " " ],
- [ "keyword.operator", "*" ],
- [ "text", " " ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "vec3" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "displacement" ],
- [ "text", " " ],
- [ "keyword.operator", "*" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "amplitude" ],
- [ "paren.rparen", ")" ],
- [ "punctuation.operator", ";" ]
- ]
- },
- {
- "state": "start",
- "data": []
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "constant.language", "gl_Position" ],
- [ "text", " " ],
- [ "keyword.operator", "=" ],
- [ "text", " " ],
- [ "identifier", "projectionMatrix" ],
- [ "text", " " ],
- [ "keyword.operator", "*" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "modelViewMatrix" ],
- [ "text", " " ],
- [ "keyword.operator", "*" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "vec4" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "newPosition" ],
- [ "punctuation.operator", "," ],
- [ "constant.numeric", "1.0" ],
- [ "paren.rparen", ")" ],
- [ "punctuation.operator", ";" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "paren.rparen", "}" ]
- ]
- }
-]
+[[
+ "start",
+ ["keyword","uniform"],
+ ["text"," "],
+ ["keyword","float"],
+ ["text"," "],
+ ["identifier","amplitude"],
+ ["punctuation.operator",";"]
+],[
+ "start",
+ ["keyword","attribute"],
+ ["text"," "],
+ ["keyword","float"],
+ ["text"," "],
+ ["identifier","displacement"],
+ ["punctuation.operator",";"]
+],[
+ "start",
+ ["keyword","varying"],
+ ["text"," "],
+ ["keyword","vec3"],
+ ["text"," "],
+ ["identifier","vNormal"],
+ ["punctuation.operator",";"]
+],[
+ "start"
+],[
+ "start",
+ ["keyword","void"],
+ ["text"," "],
+ ["identifier","main"],
+ ["paren.lparen","("],
+ ["paren.rparen",")"],
+ ["text"," "],
+ ["paren.lparen","{"]
+],[
+ "start"
+],[
+ "start",
+ ["text"," "],
+ ["identifier","vNormal"],
+ ["text"," "],
+ ["keyword.operator","="],
+ ["text"," "],
+ ["identifier","normal"],
+ ["punctuation.operator",";"]
+],[
+ "start",
+ ["text"," "]
+],[
+ "start",
+ ["text"," "],
+ ["comment","// multiply our displacement by the"]
+],[
+ "start",
+ ["text"," "],
+ ["comment","// amplitude. The amp will get animated"]
+],[
+ "start",
+ ["text"," "],
+ ["comment","// so we'll have animated displacement"]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","vec3"],
+ ["text"," "],
+ ["identifier","newPosition"],
+ ["text"," "],
+ ["keyword.operator","="],
+ ["text"," "],
+ ["identifier","position"],
+ ["text"," "],
+ ["keyword.operator","+"],
+ ["text"," "]
+],[
+ "start",
+ ["text"," "],
+ ["identifier","normal"],
+ ["text"," "],
+ ["keyword.operator","*"],
+ ["text"," "]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","vec3"],
+ ["paren.lparen","("],
+ ["identifier","displacement"],
+ ["text"," "],
+ ["keyword.operator","*"]
+],[
+ "start",
+ ["text"," "],
+ ["identifier","amplitude"],
+ ["paren.rparen",")"],
+ ["punctuation.operator",";"]
+],[
+ "start"
+],[
+ "start",
+ ["text"," "],
+ ["constant.language","gl_Position"],
+ ["text"," "],
+ ["keyword.operator","="],
+ ["text"," "],
+ ["identifier","projectionMatrix"],
+ ["text"," "],
+ ["keyword.operator","*"]
+],[
+ "start",
+ ["text"," "],
+ ["identifier","modelViewMatrix"],
+ ["text"," "],
+ ["keyword.operator","*"]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","vec4"],
+ ["paren.lparen","("],
+ ["identifier","newPosition"],
+ ["punctuation.operator",","],
+ ["constant.numeric","1.0"],
+ ["paren.rparen",")"],
+ ["punctuation.operator",";"]
+],[
+ "start",
+ ["paren.rparen","}"]
+]]
\ No newline at end of file