Skip to content

Commit 5232d7a

Browse files
committed
Reflect Raku rename
+ change scopename of grammars file + rename of grammars file + rename spec file + add filetypes rakumod rakutest rakudoc + arrange filetypes based on priority, old extensions will be deprecated anyway + change name from Perl 6 --> Raku in raku.cson + change description in package.json to The Raku Programming Language Highlighter
1 parent 8bd7b16 commit 5232d7a

12 files changed

+1414
-1416
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CREDITS linguist-language=Perl6
1+
CREDITS linguist-language=Raku

CONTRIBUTING.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Because of this, a priority system is the best way to categorize any issues.
7171
### Escaping
7272
**Important escaping is very easy to mess up. Use the included scripts to get to an unescaped version, edit on that one, and then escape it again**
7373

74-
* The best thing to use when editing is use `dev/escape.p6` or `dev/unescape.p6` to unescape or escape text. These scripts accept STDIN and output an escaped/unescaped version.
74+
* The best thing to use when editing is use `dev/escape.p6` or `dev/unescape.p6` to escape or unescape text. These scripts accept STDIN and output an escaped/unescaped version.
7575

7676
* I usually copy the text `xclip -o | dev/unescape.p6` work on the text and then copy back and do`xclip -o | dev/escape.p6`
7777

@@ -84,8 +84,8 @@ Because of this, a priority system is the best way to categorize any issues.
8484
`\\x{20}` (Unescaped form: `\x{20}`).
8585
This will use the Regex engine for this instead of using the JSON/CSON method
8686
of noting unicode codepoints (e.g. `\u20` which can be used in CSON/JSON).
87-
* Specify Unicode propertys like this: `\\p{Alpha}`(`\p{Alpha}` in unescaped
88-
form). See the cheatsheet linked below for all the ones that are guarenteed
87+
* Specify Unicode properties like this: `\\p{Alpha}`(`\p{Alpha}` in unescaped
88+
form). See the cheatsheet linked below for all the ones that are guaranteed
8989
to work.
9090

9191

@@ -113,7 +113,7 @@ sections of the code with `'include': '#identifier_name'`.
113113
The simplest for is ‘match’ which will only match at most against one line.
114114

115115
`'match': 'regex goes here'
116-
'name': 'label.perl6fe'`
116+
'name': 'label.raku'`
117117

118118
When you specify a name for the match, this label gets applied to the entire
119119
match of the regex. If you need to apply multiple labels, you should use
@@ -131,20 +131,20 @@ on top of the previous ones. You list the subrules in the Patterns section
131131
of the rule you are working on.
132132

133133
### Show me the source already!
134-
The majority of the grammar is included in `grammars/perl6fe.cson`.
134+
The majority of the grammar is included in `grammars/raku.cson`.
135135
The `q[]`, `qq[]`, `Q[]`, `"…"` etc. quoting is generated by
136136
`dev/q-qq-Q-template.p6`. Multi-line comments are also generated. The q
137-
types of quoting are added to `perl6fe.quoting.cson`. The standard quotation
138-
marks are added to `perl6fe.cson`.
137+
types of quoting are added to `raku.quoting.cson`. The standard quotation
138+
marks are added to `raku.cson`.
139139

140140
Once you have edited `q-qq-Q-template.p6`, run `dev/replace.sh` which uses
141-
awk to do the replacement. Eventually it will be nice if we had a purely Perl 6
141+
awk to do the replacement. Eventually it will be nice if we had a purely Raku
142142
solution.
143143

144144
### Testing
145145
We all love tests, right? To run tests, run `apm test` and the tests will run.
146146

147-
The testing file is at `spec/grammar-perl6fe-spec.coffee`. Please make sure
147+
The testing file is at `spec/grammar-raku-spec.coffee`. Please make sure
148148
when adding a test, that you are able to make the test fail by altering the
149149
values of the expected response. Syntax problems can cause tests to succeed
150150
silently.

README.md

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[script-package]: https://atom.io/packages/script
22
[mit]: http://opensource.org/licenses/MIT
3-
[author]: http://github.com/perl6
3+
[author]: http://github.com/Raku
44
[releases]: https://github.com/perl6/atom-language-perl6/releases
55
[mit-badge]: https://img.shields.io/apm/l/language-perl6.svg
66
[apm-pkg-link]: https://atom.io/packages/language-perl6
@@ -16,41 +16,38 @@
1616
[fira-code]: https://github.com/tonsky/FiraCode
1717
[screenshot-1]: https://raw.githubusercontent.com/perl6/atom-language-perl6/master/images/example1.png
1818

19-
# Atom Raku/Perl 6 Support - »ö« Official Edition!
19+
# Atom Raku Support - »ö« Official Edition!
2020

2121
[![apm package][apm-ver-link]][apm-pkg-link]
2222
[![][dl-badge]][apm-pkg-link]
2323
[![][mit-badge]][mit]
2424
[![travis][travis-badge]][travis-link]
2525

26-
A colorful, thoughtful, and helpful language grammar for Perl 6! See
26+
A colorful, thoughtful, and helpful language grammar for Raku! See
2727
[here](#how-do-i-use-this) for questions about usage.
2828

29-
![A screenshot of an funnified Raku/Perl 6 file][screenshot-1]
29+
![A screenshot of an funnified Raku file][screenshot-1]
3030

3131
## Integration
3232
This package has integration with the Atom [script][script-package] package.
3333
With both this package and the `script` package you can execute
34-
highlighted Raku/Perl 6 code or the whole document, even if it hasn't been saved using
34+
highlighted Raku code or the whole document, even if it hasn't been saved using
3535
a keyboard shortcut.
3636

3737
## What Makes This The *Fun* Edition?
3838

39-
> Perl 6 (Raku) is optimized for fun. ― Audrey Tang
39+
> Raku is optimized for fun. ― Audrey Tang
4040
4141
* This package was designed to work with [Fira Code][fira-code] ligatures
4242

43-
* Much more syntax highlighted (numbers, operators, interpolation, traits, better strings).
43+
* Much more syntax highlighted (numbers, operators, interpolation, traits, better strings)
4444

45-
* Some day we hope this package will also contain support for many popular
46-
atom packages that have service hooks like autocomplete+ and linter
45+
* Some day we hope this package will also contain support for many popular atom packages that have service hooks like autocomplete+ and linter
4746

4847

4948
## See something? Say something!
5049
See something highlighted incorrectly? See something LTA (Less Than Awesome)?
51-
Please report it on the [issue tracker][issues]. Any issue no matter how small
52-
should be reported. It is our hope that this is not only the best Raku/Perl 6
53-
highlighter for Atom, but the best highlighter for Atom out there.
50+
Please report it on the [issue tracker][issues]. Any issue no matter how small should be reported. It is our hope that this is not only the best Raku highlighter for Atom, but the best highlighter for Atom out there.
5451

5552
## Contributing
5653
Contributions are welcome! Please see [`CONTRIBUTING.md`][contributing] for a tutorial on writing Atom syntax grammars and more information!
@@ -60,23 +57,22 @@ Integration with Autocomplete+, linter or other packages are possible future fea
6057

6158
## How do I use this?
6259

63-
This language grammar should automatically highlight `.p6`, `.pod6`, `.pm6` and
64-
`.nqp` files. The language grammar will also detect files whose first
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
6561
line includes `use v6`, a shebang whose last term before any whitespace is
6662
`perl6` , `=begin pod`, or `my class`.
6763

6864
If you are having issues, the `language-perl` package is probably taking
6965
precedence. To remedy this you can:
7066

71-
* Click the language name in the status-bar (`Ctrl+Shift+L`) and select `Raku/Perl 6`
67+
* Click the language name in the status-bar (`Ctrl+Shift+L`) and select `Raku`
7268
* If you want to permanently change the preferences for a file type,
7369
add the following to your `config.cson` (*Edit**Config*):
7470

7571
```coffee
7672
"*":
7773
core:
7874
customFileTypes:
79-
'source.perl6fe': [
75+
'source.raku': [
8076
'p6'
8177
'pm6'
8278
# Add pm and t if you want auto choose this highlighter for .pm or 't

0 commit comments

Comments
 (0)