]> git.lizzy.rs Git - micro.git/commit
Raku syntax: Fix strings and comments (#2311)
authorJuan Francisco Cantero Hurtado <iam@juanfra.info>
Fri, 31 Dec 2021 22:42:21 +0000 (23:42 +0100)
committerGitHub <noreply@github.com>
Fri, 31 Dec 2021 22:42:21 +0000 (17:42 -0500)
commita2d83132caa137ffcaa8e557e52e744607ad0a6f
tree3404c1461ca62623c3e46ee0bd17d19f9ba0dc93
parent580c32bcef304f9e42e0ae2ec1ee69acebbe4b46
Raku syntax: Fix strings and comments (#2311)

* Raku syntax: Fix strings and comments

Problematic code:
my @array1 = [
   "'", "a", "b"
];
my @array2 = [
   '"', 'a', 'b'
];
my @array3 = [
   "#", "a", "b"
];

I deleted "default" because it was breaking comments with urls after
of my changes.

Some parts were taken from:
https://github.com/hankache/raku.nanorc/blob/master/raku.nanorc

* Raku syntax: fix strings

Code:
sub xyz(Str is encoded('utf8')) returns int32 is native('asdf') { * }
sub xyz(Str is encoded("utf8")) returns int32 is native("asdf") { * }

From python3.yaml
runtime/syntax/raku.yaml