Open aronatkins opened 6 months ago
Thanks, I think I've fixed it with commit https://github.com/leon-barrett/just-mode.el/commit/11f5fd232f62b97714344e0aea89d5f815dc539d
Please reopen this issue if it's not improved.
Your change made styling better. Comments are styled correctly in isolation, but the quoting still causes code to be seen as strings.
export ONE=1
# open single quote '
export TWO=2
# close single quote '
export THREE=3
# open double quote "
export FOUR=4
# close double quote "
export FIVE=5
I am unable to reopen with my permissions.
You are quite right. My little bit of reading suggests that we'll either need to use something more advanced like `syntax-propertize-function' or a treesitter grammar like https://github.com/IndianBoy42/tree-sitter-just . I don't know enough about either of them to do that right now. I'm very open to pull requests!
Until I get around to that, I'll roll back the latest changes. I think having names like a#b
look like comments is better than having single quotes in commas mess up syntax, though I admit that neither is great.
I believe this is fixed in just-ts-mode
, which uses a tree-sitter grammar for better parsing. It is not yet published in MELPA.
Single and double quotes confuse comment styling.
Here is a simple justfile showing the problem:
When viewed, it looks like (notice the black not grey text, and the green strings).
This may be fallout from https://github.com/leon-barrett/just-mode.el/pull/10.