Skip to content

Commit abf4cc0

Browse files
committed
more raku rename, fix typos in readme
1 parent 0fc7efb commit abf4cc0

11 files changed

+17
-19
lines changed

ISSUE_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
> Describe what you see, what you want to see, and perhaps some linkage to docs, synopses, or irclog chatter.
22
33
### Example Code
4-
```perl6
4+
```raku
55

66
```
77
### Picture [optional]
8-
> Providing a picture means that if the issue is fixed and linguist updates to include the fix (linguist uses this package to highlight Raku/Perl 6 on GitHub), your issue will remain historically viewable.
8+
> Providing a picture means that if the issue is fixed and linguist updates to include the fix (linguist uses this package to highlight Raku on GitHub), your issue will remain historically viewable.
99
1010
### Leave this in. For internal use.
1111
- [ ] Fixed in Master

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ Integration with Autocomplete+, linter or other packages are possible future fea
5757

5858
## How do I use this?
5959

60-
This language grammar should automatically highlight `.raku`, `.rakumod`, `.rakutest`, `.rakudoc`, `.nqp` and legacy `.p6`, `.pod6`, `.pm6` files. The language grammar will also detect files whose first
61-
line includes `use v6`, a shebang whose last term before any whitespace is
62-
`perl6` , `=begin pod`, or `my class`.
60+
This language grammar should automatically highlight `.raku`, `.rakumod`, `.rakutest`, `.rakudoc`, `.nqp` and legacy `.p6`, `.pod6`, `.pm6` files. The language grammar will also detect files whose first line includes `use v6`, a shebang whose last term before any whitespace is `raku` , `=begin pod`, or `my class`.
6361

6462
If you are having issues, the `language-perl` package is probably taking
6563
precedence. To remedy this you can:
@@ -75,7 +73,7 @@ precedence. To remedy this you can:
7573
'source.raku': [
7674
'p6'
7775
'pm6'
78-
# Add pm and t if you want auto choose this highlighter for .pm or 't
76+
# Add pm and t if you want auto choose this highlighter for .pm or .t
7977
# files.
8078
'pm'
8179
't'

dev/benchmark.coffee

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ fs = require 'fs-plus'
33
GrammarRegistry = require '../lib/grammar-registry'
44

55
registry = new GrammarRegistry()
6-
p6Grammar = registry.loadGrammarSync(path.resolve(__dirname, '..', '..', 'atom-language-perl6', 'grammars', 'perl6fe.cson'))
7-
p6Grammar.maxTokensPerLine = Infinity
6+
RakuGrammar = registry.loadGrammarSync(path.resolve(__dirname, '..', '..', 'atom-language-perl6', 'grammars', 'raku.cson'))
7+
RakuGrammar.maxTokensPerLine = Infinity
88

99
duration_tot = 0
1010
tokenize = (grammar, content, lineCount) ->
@@ -29,6 +29,6 @@ TestFolder = path.resolve('benchmark', 'rakudo')
2929
files = fs.readdirSync(TestFolder)
3030
for file in files
3131
console.log file
32-
tokenizeFile(path.resolve('benchmark', 'rakudo', file), p6Grammar, "tokening #{file}")
32+
tokenizeFile(path.resolve('benchmark', 'rakudo', file), RakuGrammar, "tokening #{file}")
3333

3434
console.log "Total time: #{duration_tot}ms"

dev/escape.p6 renamed to dev/escape.raku

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env perl6
1+
#!/usr/bin/env raku
22
sub escape-cson ( $str is copy ) {
33
my @chars = <'>;
44
my $reverse-solidus = Q[\];

dev/q-qq-Q-template.p6 renamed to dev/q-qq-Q-template.raku

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env perl6
1+
#!/usr/bin/env raku
22
# Generate the q[] qq[] and Q[] quoting constructs
33
my @open-close-delimiters =
44
#Left Pi right Pf. Open Ps close Pe

dev/replace.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FILE="./grammars/raku.cson"
33
TEMP_FILE="${FILE}.new"
44
FILE2="./grammars/raku.quoting.cson"
55
TEMP_FILE2="${FILE2}.new"
6-
perl6 ./dev/q-qq-Q-template.p6
6+
raku ./dev/q-qq-Q-template.raku
77
if [ ! -f ZERO.cson ]; then
88
exit 1
99
fi

dev/sample_text/Q_q_qq.p6 renamed to dev/sample_text/Q_q_qq.raku

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env perl6
1+
#!/usr/bin/env raku
22
### This is to test the q qq and Q quoting
33
((qw[\ % ? & = # + " ' : ~ < >]));
44
## any
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/usr/bin/env perl6
1+
#!/usr/bin/env raku
22
$*IN.slurp-rest.trans([Q<\\>] => Q<\>, Q<\'> => Q<'>).print;

grammars/raku.quoting.cson

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'scopeName': 'source.quoting.raku'
2-
'name': 'Quoting (Raku)'
2+
'name': 'Quoting in Raku'
33
'fileTypes': []
44
'patterns': [
5-
## See `./dev/Q_q_qq.p6` to alter the generator for this code
5+
## See `./dev/Q_q_qq.raku` to alter the generator for this code
66
#1START DO NOT EDIT BETWEEN THIS LINE AND #1END
77
# Q_triple_paren
88
{

grammars/raku.regexp.cson

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'scopeName': 'source.regexp.raku'
2-
'name': 'Regular Expressions (Raku)'
2+
'name': 'Regular Expressions in Raku'
33
'fileTypes': []
44
'patterns': [
55
'include': '#regexp'

spec/grammar-raku-spec.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ describe "Raku grammar", ->
3030
it "use v6 works", ->
3131
lne = " use v6;"
3232
expect(grammar.firstLineRegex.scanner.findNextMatchSync(lne)).not.toBeNull()
33-
it "First line: =comment detected as Perl 6", ->
34-
lne = " =comment detected as Perl 6"
33+
it "First line: =comment detected as Raku", ->
34+
lne = " =comment detected as Raku"
3535
expect(grammar.firstLineRegex.scanner.findNextMatchSync(lne)).not.toBeNull()
3636
it " =begin pod works", ->
3737
lne = " =begin pod"

0 commit comments

Comments
 (0)