You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ 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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Because of this, a priority system is the best way to categorize any issues.
71
71
### Escaping
72
72
**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**
73
73
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.
75
75
76
76
* 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`
77
77
@@ -84,8 +84,8 @@ Because of this, a priority system is the best way to categorize any issues.
84
84
`\\x{20}` (Unescaped form: `\x{20}`).
85
85
This will use the Regex engine for this instead of using the JSON/CSON method
86
86
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
89
89
to work.
90
90
91
91
@@ -113,7 +113,7 @@ sections of the code with `'include': '#identifier_name'`.
113
113
The simplest for is ‘match’ which will only match at most against one line.
114
114
115
115
`'match': 'regex goes here'
116
-
'name': 'label.perl6fe'`
116
+
'name': 'label.raku'`
117
117
118
118
When you specify a name for the match, this label gets applied to the entire
119
119
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
131
131
of the rule you are working on.
132
132
133
133
### 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`.
135
135
The `q[]`, `qq[]`, `Q[]`, `"…"` etc. quoting is generated by
136
136
`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`.
139
139
140
140
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
142
142
solution.
143
143
144
144
### Testing
145
145
We all love tests, right? To run tests, run `apm test` and the tests will run.
146
146
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
148
148
when adding a test, that you are able to make the test fail by altering the
149
149
values of the expected response. Syntax problems can cause tests to succeed
# Atom Raku/Perl 6 Support - »ö« Official Edition!
19
+
# Atom Raku Support - »ö« Official Edition!
20
20
21
21
[![apm package][apm-ver-link]][apm-pkg-link]
22
22
[![][dl-badge]][apm-pkg-link]
23
23
[![][mit-badge]][mit]
24
24
[![travis][travis-badge]][travis-link]
25
25
26
-
A colorful, thoughtful, and helpful language grammar for Perl 6! See
26
+
A colorful, thoughtful, and helpful language grammar for Raku! See
27
27
[here](#how-do-i-use-this) for questions about usage.
28
28
29
-
![A screenshot of an funnified Raku/Perl 6 file][screenshot-1]
29
+
![A screenshot of an funnified Raku file][screenshot-1]
30
30
31
31
## Integration
32
32
This package has integration with the Atom [script][script-package] package.
33
33
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
35
35
a keyboard shortcut.
36
36
37
37
## What Makes This The *Fun* Edition?
38
38
39
-
> Perl 6 (Raku) is optimized for fun. ― Audrey Tang
39
+
> Raku is optimized for fun. ― Audrey Tang
40
40
41
41
* This package was designed to work with [Fira Code][fira-code] ligatures
42
42
43
-
* Much more syntax highlighted (numbers, operators, interpolation, traits, better strings).
43
+
* Much more syntax highlighted (numbers, operators, interpolation, traits, better strings)
44
44
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
47
46
48
47
49
48
## See something? Say something!
50
49
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.
54
51
55
52
## Contributing
56
53
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
60
57
61
58
## How do I use this?
62
59
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
65
61
line includes `use v6`, a shebang whose last term before any whitespace is
66
62
`perl6` , `=begin pod`, or `my class`.
67
63
68
64
If you are having issues, the `language-perl` package is probably taking
69
65
precedence. To remedy this you can:
70
66
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`
72
68
* If you want to permanently change the preferences for a file type,
73
69
add the following to your `config.cson` (*Edit* → *Config*):
74
70
75
71
```coffee
76
72
"*":
77
73
core:
78
74
customFileTypes:
79
-
'source.perl6fe': [
75
+
'source.raku': [
80
76
'p6'
81
77
'pm6'
82
78
# Add pm and t if you want auto choose this highlighter for .pm or 't
0 commit comments