Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XQuery language wordPatterns #29

Open
apb2006 opened this issue Feb 17, 2025 · 1 comment
Open

XQuery language wordPatterns #29

apb2006 opened this issue Feb 17, 2025 · 1 comment

Comments

@apb2006
Copy link
Member

apb2006 commented Feb 17, 2025

The current wordPattern

"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\<\\>\\/\\?\\s]+)"
does not allow "-" in names. I can not recall where it came from.
Need review.

@apb2006
Copy link
Member Author

apb2006 commented Feb 17, 2025

AI gave a couple of flawed solutions, best is documentation hint
https://vscode-api.js.org/interfaces/vscode.LanguageConfiguration.html#wordPattern

From which I think

 "wordPattern": "([^`,;:$<>//)(\\[\\]\\s]+)",

Which works with [ΔΔ4.5-ab_c] etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant