razetime / bqn-vscode

BQN programming language vscode plugin (symbol input, syntax highlighting)
MIT License
22 stars 6 forks source link

Word completion includes too many characters #27

Open zopsicle opened 1 year ago

zopsicle commented 1 year ago

VS Code has a word completion feature that looks at words that are in any of the currently open files. For BQN, it includes characters that aren’t part of the identifier:

https://github.com/razetime/bqn-vscode/assets/50083900/957f5fec-5f72-43bd-8b8f-66495965ab46

In the above screen capture, the expected word completions are modifier1 and modifier2.

Another feature of VS Code is to highlight the word that the cursor is currently on. This seems to include too many characters as well, and this is probably caused by the same:

Screenshot

Using BQN language v0.1.5.

razetime commented 1 year ago

ah, i will fix identifiers to avoid including punctuation in names. this should be a simple fix.

razetime commented 1 year ago

oh, also, please copy and paste the text to replicate the bug. it's best to make that a habit in most issues.

Feel free to provide as much text as you can, so I can make sure i'm matching identifiers right.