Skip to content

Commit

Permalink
Allow Pascal_Snake_Case function names
Browse files Browse the repository at this point in the history
Pascal_Snake_Case allows multiple underscore-delimited PascalCase parts,
and is a superset of PascalCase. Some other sources use symbol names
more like this than strict PascalCase, so loosen the restrictions to
better accommodate them.
  • Loading branch information
UsernameFodder committed Dec 20, 2023
1 parent a5b2a06 commit eaf45c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-symbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ jobs:
- name: Install resymgen
uses: ./.github/actions/build-resymgen
- name: Test
run: resymgen check --recursive --complete-version-list --explicit-versions --in-bounds-symbols --no-overlap --nonempty-maps --unique-symbols --data-names SCREAMING_SNAKE_CASE --function-names PascalCase --function-names snake_case symbols/*.yml
run: resymgen check --recursive --complete-version-list --explicit-versions --in-bounds-symbols --no-overlap --nonempty-maps --unique-symbols --data-names SCREAMING_SNAKE_CASE --function-names Pascal_Snake_Case --function-names snake_case symbols/*.yml
2 changes: 1 addition & 1 deletion check_and_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ make -C headers
make -C headers format
make -C headers symbol-check

cargo run --release -- check -r -Vvbomu -d screaming_snake_case -f pascalcase -f snake_case symbols/*.yml
cargo run --release -- check -r -Vvbomu -d screaming_snake_case -f pascal_snake_case -f snake_case symbols/*.yml
cargo run --release -- fmt -r symbols/*.yml

2 changes: 1 addition & 1 deletion symbols/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Refer to the [`resymgen` README](../docs/resymgen.md#usage) for a general overvi
git rm --cached -r .
git reset --hard
```
- Run the tests: `resymgen check -r -Vvbomu -d screaming_snake_case -f pascalcase -f snake_case <symbol files>`
- Run the tests: `resymgen check -r -Vvbomu -d screaming_snake_case -f pascal_snake_case -f snake_case <symbol files>`
- On Unix shells that support globbing (the `*` operator), you can use `*.yml` in place of `<symbol files>` to test everything in the directory.
- If you're wondering what all the flags mean, see the help text (`resymgen check --help`).
- Bulk-merge symbols from a CSV file into the symbol tables: `resymgen merge -x -f csv -v <version> -i <CSV file> <YAML symbol file>`
Expand Down

0 comments on commit eaf45c7

Please sign in to comment.