Skip to content

Commit

Permalink
Merge pull request #356 from yui-knk/only_US-ASCII
Browse files Browse the repository at this point in the history
Use only US-ASCII
  • Loading branch information
yui-knk authored Jan 27, 2024
2 parents 7914b2c + a7bef7a commit 91f9e06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
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

0 comments on commit 91f9e06

Please sign in to comment.