mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add sample Perl 6 files
This commit is contained in:
22
samples/Perl6/grammar-test.p6
Normal file
22
samples/Perl6/grammar-test.p6
Normal file
@@ -0,0 +1,22 @@
|
||||
token pod_formatting_code {
|
||||
$<code>=<[A..Z]>
|
||||
'<' { $*POD_IN_FORMATTINGCODE := 1 }
|
||||
$<content>=[ <!before '>'> <pod_string_character> ]+
|
||||
'>' { $*POD_IN_FORMATTINGCODE := 0 }
|
||||
}
|
||||
|
||||
token pod_string {
|
||||
<pod_string_character>+
|
||||
}
|
||||
|
||||
token something:sym«<» {
|
||||
<!>
|
||||
}
|
||||
|
||||
token name {
|
||||
<!>
|
||||
}
|
||||
|
||||
token comment:sym<#> {
|
||||
'#' {} \N*
|
||||
}
|
||||
Reference in New Issue
Block a user