Commit 1d47c38
fix(pattern/parser): allow '_' in name identifiers
Add support for the '_' character in the parser's "name" production so identifiers
like "thread_id" parse correctly. This updates the pattern parser to treat
underscore as a valid name character.
Changes:
- Modified src/encode/pattern/parser.rs to accept '_' in names.
- Updated/added tests related to thread_id and name parsing.
No breaking API changes. Related to #431.1 parent ee27af5 commit 1d47c38
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
874 | 892 | | |
875 | 893 | | |
876 | 894 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments