From: Juan Francisco Cantero Hurtado Date: Fri, 31 Dec 2021 23:51:53 +0000 (+0100) Subject: Raku syntax: fix comments (#2318) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3a1ec088e22c16e8cd9a204ae691b208b323bb55;p=micro.git Raku syntax: fix comments (#2318) Code: # sub xyz(Str is encoded("utf8")) returns int32 is native("asdf") { * } --- diff --git a/runtime/syntax/raku.yaml b/runtime/syntax/raku.yaml index c0f6c910..3dea6ade 100644 --- a/runtime/syntax/raku.yaml +++ b/runtime/syntax/raku.yaml @@ -12,10 +12,6 @@ rules: - identifier: "[$@%&](\\.|!|^)?([[:alpha:]]|_)([[:alnum:]]|-|_)*([[:alnum:]]|_)" - identifier: "[$@%&](\\?|\\*)([A-Z])([A-Z]|-)*([A-Z])" - - comment: "#\ [^`|=]*" - - comment: "#[:alnum:].*" - - comment: "^#!/.*" - - constant.string: start: "\"" end: "\"" @@ -40,3 +36,7 @@ rules: end: "EOSQL" rules: [] + - comment: + start: "#" + end: "$" + rules: []