mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
1 line
No EOL
4.7 KiB
JavaScript
1 line
No EOL
4.7 KiB
JavaScript
define(["require","exports","../test/testRunner"],(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r.testTokenization)("cypher",[[{line:"// Single line comment",tokens:[{startIndex:0,type:"comment.cypher"}]}],[{line:"MATCH /* comment part */ xyz",tokens:[{startIndex:0,type:"keyword.cypher"},{startIndex:5,type:"white.cypher"},{startIndex:6,type:"comment.cypher"},{startIndex:24,type:"white.cypher"},{startIndex:25,type:"identifier.cypher"}]}],[{line:"/* multi line comment",tokens:[{startIndex:0,type:"comment.cypher"}]},{line:"comment continues MATCH // not done yet",tokens:[{startIndex:0,type:"comment.cypher"}]},{line:"comment ends */ MATCH",tokens:[{startIndex:0,type:"comment.cypher"},{startIndex:15,type:"white.cypher"},{startIndex:16,type:"keyword.cypher"}]}],[{line:"13",tokens:[{startIndex:0,type:"number.cypher"}]}],[{line:"-40000",tokens:[{startIndex:0,type:"number.cypher"}]}],[{line:"3.14",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:".314",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"-.314",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"6.022E23",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"-6.022e23",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"12E10",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"12e10",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"12e-10",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"12E-10",tokens:[{startIndex:0,type:"number.float.cypher"}]}],[{line:"0x13af",tokens:[{startIndex:0,type:"number.hex.cypher"}]}],[{line:"0xFC3A9",tokens:[{startIndex:0,type:"number.hex.cypher"}]}],[{line:"-0x66eff",tokens:[{startIndex:0,type:"number.hex.cypher"}]}],[{line:"01372",tokens:[{startIndex:0,type:"number.octal.cypher"}]}],[{line:"02127",tokens:[{startIndex:0,type:"number.octal.cypher"}]}],[{line:"-05671",tokens:[{startIndex:0,type:"number.octal.cypher"}]}],[{line:"\"two 'words'\"",tokens:[{startIndex:0,type:"string.cypher"}]}],[{line:'"two \\"words\\""',tokens:[{startIndex:0,type:"string.cypher"}]}],[{line:"'two \"words\"'",tokens:[{startIndex:0,type:"string.cypher"}]}],[{line:"'two \\'words\\''",tokens:[{startIndex:0,type:"string.cypher"}]}],[{line:"`variable`",tokens:[{startIndex:0,type:"identifier.escape.cypher"}]}],[{line:"`A variable with weird stuff in it[]!`",tokens:[{startIndex:0,type:"identifier.escape.cypher"}]}],[{line:"`Escaped \\`variable\\``",tokens:[{startIndex:0,type:"identifier.escape.cypher"}]}],[{line:"1+2",tokens:[{startIndex:0,type:"number.cypher"},{startIndex:1,type:"delimiter.cypher"},{startIndex:2,type:"number.cypher"}]}],[{line:"1++2",tokens:[{startIndex:0,type:"number.cypher"},{startIndex:1,type:""},{startIndex:3,type:"number.cypher"}]}],[{line:"true",tokens:[{startIndex:0,type:"predefined.literal.cypher"}]}],[{line:"false",tokens:[{startIndex:0,type:"predefined.literal.cypher"}]}],[{line:"TRUE",tokens:[{startIndex:0,type:"predefined.literal.cypher"}]}],[{line:"FALSE",tokens:[{startIndex:0,type:"predefined.literal.cypher"}]}],[{line:"null",tokens:[{startIndex:0,type:"predefined.literal.cypher"}]}],[{line:"NULL",tokens:[{startIndex:0,type:"predefined.literal.cypher"}]}],[{line:"properties(node)",tokens:[{startIndex:0,type:"predefined.function.cypher"},{startIndex:10,type:"delimiter.parenthesis.cypher"},{startIndex:11,type:"identifier.cypher"},{startIndex:15,type:"delimiter.parenthesis.cypher"}]}],[{line:'left(right("Hello Cypher"))',tokens:[{startIndex:0,type:"predefined.function.cypher"},{startIndex:4,type:"delimiter.parenthesis.cypher"},{startIndex:5,type:"predefined.function.cypher"},{startIndex:10,type:"delimiter.parenthesis.cypher"},{startIndex:11,type:"string.cypher"},{startIndex:25,type:"delimiter.parenthesis.cypher"}]}],[{line:"MATCH (n) RETURN n",tokens:[{startIndex:0,type:"keyword.cypher"},{startIndex:5,type:"white.cypher"},{startIndex:6,type:"delimiter.parenthesis.cypher"},{startIndex:7,type:"identifier.cypher"},{startIndex:8,type:"delimiter.parenthesis.cypher"},{startIndex:9,type:"white.cypher"},{startIndex:10,type:"keyword.cypher"},{startIndex:16,type:"white.cypher"},{startIndex:17,type:"identifier.cypher"}]}],[{line:"(n:NodeLabel1)-[:RelationshipType]->(:NodeLabel2:NodeLabel3)",tokens:[{startIndex:0,type:"delimiter.parenthesis.cypher"},{startIndex:1,type:"identifier.cypher"},{startIndex:2,type:"type.identifier.cypher"},{startIndex:13,type:"delimiter.parenthesis.cypher"},{startIndex:14,type:"delimiter.cypher"},{startIndex:15,type:"delimiter.bracket.cypher"},{startIndex:16,type:"type.identifier.cypher"},{startIndex:33,type:"delimiter.bracket.cypher"},{startIndex:34,type:"delimiter.cypher"},{startIndex:36,type:"delimiter.parenthesis.cypher"},{startIndex:37,type:"type.identifier.cypher"},{startIndex:59,type:"delimiter.parenthesis.cypher"}]}]])})); |