Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only US-ASCII #356

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ jobs:
bundler-cache: true
- run: bundle install

# Copy from https://github.com/ruby/ruby/blob/cb9a47f2acd6e373ef868b890a9d07da6f565dd4/.github/workflows/check_misc.yml#L31
- name: Check if C-sources are US-ASCII
run: |
grep -r -n --include='*.[chyS]' --include='*.asm' $'[^\t-~]' -- . && exit 1 || :

# Copy from https://github.com/ruby/ruby/blob/089227e94823542acfdafa68541d330eee42ffea/.github/workflows/check_misc.yml#L27
- name: Check for trailing spaces
run: |
Expand Down
6 changes: 3 additions & 3 deletions lib/lrama/grammar/stdlib.y
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* =>
*
* program: option_number
* option_number: ε
* option_number: %empty
* option_number: number
*/
%rule option(X): /* empty */
Expand All @@ -27,7 +27,7 @@
* =>
*
* program: list_number
* list_number: ε
* list_number: %empty
* list_number: list_number number
*/
%rule list(X): /* empty */
Expand Down Expand Up @@ -67,7 +67,7 @@
*
* program: separated_list_comma_number
* separated_list_comma_number: option_separated_nonempty_list_comma_number
* option_separated_nonempty_list_comma_number: ε
* option_separated_nonempty_list_comma_number: %empty
* option_separated_nonempty_list_comma_number: separated_nonempty_list_comma_number
* separated_nonempty_list_comma_number: number
* separated_nonempty_list_comma_number: comma separated_nonempty_list_comma_number number
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/command/basic.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This is a valid sample grammar file.
* This is a valid sample grammar file.
* It works as simple calculator.
*/

Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/lexer/location.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This is a valid sample grammar file.
* This is a valid sample grammar file.
* It works as simple calculator.
*/

Expand Down