]> git.lizzy.rs Git - micro.git/commitdiff
Update and rename perl6.yaml to raku.yaml (#1927)
authorAlex Tsantilis <alex.tsantilis@gmail.com>
Wed, 7 Apr 2021 20:21:19 +0000 (16:21 -0400)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 20:21:19 +0000 (16:21 -0400)
The language has been renamed but still aims to support the old file extensions for a time.

runtime/syntax/perl6.yaml [deleted file]
runtime/syntax/raku.yaml [new file with mode: 0644]

diff --git a/runtime/syntax/perl6.yaml b/runtime/syntax/perl6.yaml
deleted file mode 100644 (file)
index 6924f8d..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-filetype: perl6
-
-detect: 
-    filename: "(\\.p6$|\\.pl6$|\\.pm6$)"
-
-rules:
-    - type: "\\b(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\\b"
-    - statement: "\\b(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\\b"
-    - special: "\\b(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\\b"
-    - identifier:
-        start: "[$@%]"
-        end: "( |\\\\W|-)"
-        rules: []
-
-    - constant.string: "\".*\"|qq\\|.*\\|"
-    - default: "[sm]/.*/"
-    - preproc:
-        start: "(^use| = new)"
-        end: ";"
-        rules: []
-
-    - comment: "#.*"
-    - identifier.macro:
-        start: "<<EOSQL"
-        end: "EOSQL"
-        rules: []
-
diff --git a/runtime/syntax/raku.yaml b/runtime/syntax/raku.yaml
new file mode 100644 (file)
index 0000000..c3d6201
--- /dev/null
@@ -0,0 +1,27 @@
+filetype: raku
+
+detect: 
+    filename: "(\\.p6$|\\.pl6$|\\.pm6$|\\.raku$|\\.rakumod$|\\.rakudoc$)"
+
+rules:
+    - type: "\\b(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\\b"
+    - statement: "\\b(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\\b"
+    - special: "\\b(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\\b"
+    - identifier:
+        start: "[$@%]"
+        end: "( |\\\\W|-)"
+        rules: []
+
+    - constant.string: "\".*\"|qq\\|.*\\|"
+    - default: "[sm]/.*/"
+    - preproc:
+        start: "(^use| = new)"
+        end: ";"
+        rules: []
+
+    - comment: "#.*"
+    - identifier.macro:
+        start: "<<EOSQL"
+        end: "EOSQL"
+        rules: []
+