X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fgo.yaml;h=fab3baa10fd47f71c6a5c3faee055b8a8242a78b;hb=a0a154d957ee2e2a94925b863674403ee483f61e;hp=67825bd44710b00961dc06072f881cc6fa207ac8;hpb=54bb99d7580cc1bc76507ce64ff78ef2038c8066;p=micro.git diff --git a/runtime/syntax/go.yaml b/runtime/syntax/go.yaml index 67825bd4..fab3baa1 100644 --- a/runtime/syntax/go.yaml +++ b/runtime/syntax/go.yaml @@ -11,11 +11,9 @@ rules: - symbol.operator: "[-+/*=<>!~%&|^]|:=" # Types - - special: "[a-zA-Z0-9]*\\(" - symbol: "(,|\\.)" - type: "\\b(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\\b" - type: "\\b(uintptr|byte|rune|string|interface|bool|map|chan|error)\\b" - ##I'm... not sure, but aren't structs a type? - type.keyword: "\\b(struct)\\b" - constant.bool: "\\b(true|false|nil)\\b" @@ -30,6 +28,7 @@ rules: - constant.string: start: "\"" end: "\"" + skip: "\\\\." rules: - constant.specialChar: "%." - constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]" @@ -38,6 +37,7 @@ rules: - constant.string: start: "'" end: "'" + skip: "\\\\." rules: - error: "..+" - constant.specialChar: "%."