diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-12-11 07:56:38 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-12-11 08:29:05 -0500 |
| commit | f9eedfb37c955a57d17c9069d59be77357e33afc (patch) | |
| tree | a0739a367733df22c549933aecead0dc6314ac8e /src | |
| parent | 98db677ede6cafd100a6f5d136ab5f2b90ac1eb1 (diff) | |
Fix error message position for all-underscore identifier
Diffstat (limited to 'src')
| -rw-r--r-- | src/c.bqn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ Tokenize←{System‿vars←𝕨 nd←(t=⊑bN)>«t M bD⋄rr←t=bR # Namespace dot; 𝕣 w←»⊸<l←rr∨nd<t M bN(⊣⋈-˜)○⊑bW # Word chars l, start w us←t=¯1++´bA⋄sy←t=⊑bW # Underscore, system dot - {!⟨/us∧w+`⊸⊏0∾𝕩,"Words can't only have underscores"⟩}⍟(∨´)w(/<1(⊢/«)(∨/⊣))l>us + {!⟨is/˜us∧w+`⊸⊏0∾𝕩,"Words can't only have underscores"⟩}⍟(∨´)w(/<1(⊢/«)(∨/⊣))l>us wk←(¬w/rr)×na⌊∘÷˜(⊑bA)-˜w/t # Kind of word from first char t-↩na×l∧t≥na+⊑bA # Case-insensitive {!⟨𝕩/is,"System dot with no name"⟩}⍟(∨´)sy>«l |
