lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json in gollum-3.1.2 vs lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_python.json in gollum-3.1.3
- old
+ new
@@ -1,205 +1,152 @@
-[
- {
- "state": "start",
- "data": [
- [ "comment", "#!/usr/local/bin/python" ]
- ]
- },
- {
- "state": "start",
- "data": []
- },
- {
- "state": "start",
- "data": [
- [ "keyword", "import" ],
- [ "text", " " ],
- [ "identifier", "string" ],
- [ "text", ", " ],
- [ "identifier", "sys" ]
- ]
- },
- {
- "state": "start",
- "data": []
- },
- {
- "state": "start",
- "data": [
- [ "comment", "# If no arguments were given, print a helpful message" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "keyword", "if" ],
- [ "text", " " ],
- [ "support.function", "len" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "sys" ],
- [ "text", "." ],
- [ "identifier", "argv" ],
- [ "paren.rparen", ")" ],
- [ "keyword.operator", "==" ],
- [ "constant.numeric", "1" ],
- [ "text", ":" ]
- ]
- },
- {
- "state": "qstring",
- "data": [
- [ "text", " " ],
- [ "keyword", "print" ],
- [ "text", " " ],
- [ "string", "'''Usage:" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "string", "celsius temp1 temp2 ...'''" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "sys" ],
- [ "text", "." ],
- [ "identifier", "exit" ],
- [ "paren.lparen", "(" ],
- [ "constant.numeric", "0" ],
- [ "paren.rparen", ")" ]
- ]
- },
- {
- "state": "start",
- "data": []
- },
- {
- "state": "start",
- "data": [
- [ "comment", "# Loop over the arguments" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "keyword", "for" ],
- [ "text", " " ],
- [ "identifier", "i" ],
- [ "text", " " ],
- [ "keyword", "in" ],
- [ "text", " " ],
- [ "identifier", "sys" ],
- [ "text", "." ],
- [ "identifier", "argv" ],
- [ "paren.lparen", "[" ],
- [ "constant.numeric", "1" ],
- [ "text", ":" ],
- [ "paren.rparen", "]" ],
- [ "text", ":" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "try" ],
- [ "text", ":" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "fahrenheit" ],
- [ "keyword.operator", "=" ],
- [ "support.function", "float" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "string" ],
- [ "text", "." ],
- [ "identifier", "atoi" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "i" ],
- [ "paren.rparen", ")" ],
- [ "paren.rparen", ")" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "except" ],
- [ "text", " " ],
- [ "identifier", "string" ],
- [ "text", "." ],
- [ "identifier", "atoi_error" ],
- [ "text", ":" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "print" ],
- [ "text", " " ],
- [ "support.function", "repr" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "i" ],
- [ "paren.rparen", ")" ],
- [ "text", ", " ],
- [ "string", "\"not a numeric value\"" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "else" ],
- [ "text", ":" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "identifier", "celsius" ],
- [ "keyword.operator", "=" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "fahrenheit" ],
- [ "keyword.operator", "-" ],
- [ "constant.numeric", "32" ],
- [ "paren.rparen", ")" ],
- [ "keyword.operator", "*" ],
- [ "constant.numeric", "5.0" ],
- [ "keyword.operator", "/" ],
- [ "constant.numeric", "9.0" ]
- ]
- },
- {
- "state": "start",
- "data": [
- [ "text", " " ],
- [ "keyword", "print" ],
- [ "text", " " ],
- [ "string", "'%i\\260F = %i\\260C'" ],
- [ "text", " " ],
- [ "keyword.operator", "%" ],
- [ "text", " " ],
- [ "paren.lparen", "(" ],
- [ "support.function", "int" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "fahrenheit" ],
- [ "paren.rparen", ")" ],
- [ "text", ", " ],
- [ "support.function", "int" ],
- [ "paren.lparen", "(" ],
- [ "identifier", "celsius" ],
- [ "keyword.operator", "+" ],
- [ "constant.numeric", ".5" ],
- [ "paren.rparen", ")" ],
- [ "paren.rparen", ")" ]
- ]
- }
-]
+[[
+ "start",
+ ["comment","#!/usr/local/bin/python"]
+],[
+ "start"
+],[
+ "start",
+ ["keyword","import"],
+ ["text"," "],
+ ["identifier","string"],
+ ["text",", "],
+ ["identifier","sys"]
+],[
+ "start"
+],[
+ "start",
+ ["comment","# If no arguments were given, print a helpful message"]
+],[
+ "start",
+ ["keyword","if"],
+ ["text"," "],
+ ["support.function","len"],
+ ["paren.lparen","("],
+ ["identifier","sys"],
+ ["text","."],
+ ["identifier","argv"],
+ ["paren.rparen",")"],
+ ["keyword.operator","=="],
+ ["constant.numeric","1"],
+ ["text",":"]
+],[
+ "qstring3",
+ ["text"," "],
+ ["keyword","print"],
+ ["text"," "],
+ ["string","'''Usage:"]
+],[
+ "start",
+ ["string","celsius temp1 temp2 ...'''"]
+],[
+ "start",
+ ["text"," "],
+ ["identifier","sys"],
+ ["text","."],
+ ["identifier","exit"],
+ ["paren.lparen","("],
+ ["constant.numeric","0"],
+ ["paren.rparen",")"]
+],[
+ "start"
+],[
+ "start",
+ ["comment","# Loop over the arguments"]
+],[
+ "start",
+ ["keyword","for"],
+ ["text"," "],
+ ["identifier","i"],
+ ["text"," "],
+ ["keyword","in"],
+ ["text"," "],
+ ["identifier","sys"],
+ ["text","."],
+ ["identifier","argv"],
+ ["paren.lparen","["],
+ ["constant.numeric","1"],
+ ["text",":"],
+ ["paren.rparen","]"],
+ ["text",":"]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","try"],
+ ["text",":"]
+],[
+ "start",
+ ["text"," "],
+ ["identifier","fahrenheit"],
+ ["keyword.operator","="],
+ ["support.function","float"],
+ ["paren.lparen","("],
+ ["identifier","string"],
+ ["text","."],
+ ["identifier","atoi"],
+ ["paren.lparen","("],
+ ["identifier","i"],
+ ["paren.rparen","))"]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","except"],
+ ["text"," "],
+ ["identifier","string"],
+ ["text","."],
+ ["identifier","atoi_error"],
+ ["text",":"]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","print"],
+ ["text"," "],
+ ["support.function","repr"],
+ ["paren.lparen","("],
+ ["identifier","i"],
+ ["paren.rparen",")"],
+ ["text",", "],
+ ["string","\"not a numeric value\""]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","else"],
+ ["text",":"]
+],[
+ "start",
+ ["text"," "],
+ ["identifier","celsius"],
+ ["keyword.operator","="],
+ ["paren.lparen","("],
+ ["identifier","fahrenheit"],
+ ["keyword.operator","-"],
+ ["constant.numeric","32"],
+ ["paren.rparen",")"],
+ ["keyword.operator","*"],
+ ["constant.numeric","5.0"],
+ ["keyword.operator","/"],
+ ["constant.numeric","9.0"]
+],[
+ "start",
+ ["text"," "],
+ ["keyword","print"],
+ ["text"," "],
+ ["string","'%i"],
+ ["constant.language.escape","\\260"],
+ ["string","F = %i"],
+ ["constant.language.escape","\\260"],
+ ["string","C'"],
+ ["text"," "],
+ ["keyword.operator","%"],
+ ["text"," "],
+ ["paren.lparen","("],
+ ["support.function","int"],
+ ["paren.lparen","("],
+ ["identifier","fahrenheit"],
+ ["paren.rparen",")"],
+ ["text",", "],
+ ["support.function","int"],
+ ["paren.lparen","("],
+ ["identifier","celsius"],
+ ["keyword.operator","+"],
+ ["constant.numeric",".5"],
+ ["paren.rparen","))"]
+]]
\ No newline at end of file