]> git.lizzy.rs Git - micro.git/commitdiff
Raku syntax: fix comments (#2318)
authorJuan Francisco Cantero Hurtado <iam@juanfra.info>
Fri, 31 Dec 2021 23:51:53 +0000 (00:51 +0100)
committerGitHub <noreply@github.com>
Fri, 31 Dec 2021 23:51:53 +0000 (18:51 -0500)
Code:
 # sub xyz(Str is encoded("utf8")) returns int32 is native("asdf") { * }

runtime/syntax/raku.yaml

index c0f6c9104eb2179fcf6994ab2d669cdbfe0bde50..3dea6adece874b5444c3f56b0ef7043a2a080d18 100644 (file)
@@ -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: []