From 3a1ec088e22c16e8cd9a204ae691b208b323bb55 Mon Sep 17 00:00:00 2001 From: Juan Francisco Cantero Hurtado Date: Sat, 1 Jan 2022 00:51:53 +0100 Subject: [PATCH] Raku syntax: fix comments (#2318) Code: # sub xyz(Str is encoded("utf8")) returns int32 is native("asdf") { * } --- runtime/syntax/raku.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: [] -- 2.44.0