Add support for Raku (#803)

* Add support for Raku

* [Raku] Remove single line and paragraph docs

as they do not work currently

* [Raku] Change code and comments to reflect the new changes
This commit is contained in:
Siavash Askari Nasr 2022-08-15 11:14:12 +04:30 committed by GitHub
parent 901b49a2d4
commit 6c1463b592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 86 additions and 18 deletions

View file

@ -985,13 +985,6 @@
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["pl", "pm"]
},
"Perl6": {
"name": "Rakudo",
"line_comment": ["#"],
"multi_line_comments": [["=begin", "=end"]],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["pl6", "pm6"]
},
"Pest": {
"line_comment": ["//"],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
@ -1124,6 +1117,43 @@
"filenames": ["rakefile"],
"extensions": ["rake"]
},
"Raku": {
"shebangs": ["#!/usr/bin/raku", "#!/usr/bin/perl6"],
"line_comment": ["#"],
"multi_line_comments": [
["#`(", ")"],
["#`[", "]"],
["#`{", "}"],
["#`「", "」"]
],
"nested": true,
"quotes": [["\\\"", "\\\""] , ["'", "'"]],
"verbatim_quotes": [["「", "」"]],
"doc_quotes": [
["#|{", "}"],
["#={", "}"],
["#|(", ")"],
["#=(", ")"],
["#|[", "]"],
["#=[", "]"],
["#|「", "」"],
["#=「", "」"],
["=begin pod", "=end pod"],
["=begin code", "=end code"],
["=begin head", "=end head"],
["=begin item", "=end item"],
["=begin table", "=end table"],
["=begin defn", "=end defn"],
["=begin para", "=end para"],
["=begin comment", "=end comment"],
["=begin data", "=end data"],
["=begin DESCRIPTION", "=end DESCRIPTION"],
["=begin SYNOPSIS", "=end SYNOPSIS"],
["=begin ", "=end "]
],
"env": ["raku", "perl6"],
"extensions": ["raku", "rakumod", "rakutest", "pm6", "pl6", "p6"]
},
"Razor": {
"multi_line_comments": [["<!--", "-->"], ["@*", "*@"]],
"extensions": ["cshtml"]

View file

Internal server error - HydraGit

500

Internal server error

Forgejo version: 7.0.9+gitea-1.21.11

@ -1,11 +0,0 @@
# 11 lines 4 code 5 comments 2 blanks