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

Correct handling of scheme symbols #159

Open
xsrvmy opened this issue Mar 13, 2023 · 3 comments
Open

Correct handling of scheme symbols #159

xsrvmy opened this issue Mar 13, 2023 · 3 comments

Comments

@xsrvmy
Copy link

xsrvmy commented Mar 13, 2023

It seems that the editor simply doesn't handle scheme symbols at all

  • symbols are highlighted as normal identifier, leading to odd highlighting if a keyword (eg. "do") is used as a symbol
  • code completion pops up which is often not useful
@PeterBjuhr
Copy link
Collaborator

Hi, thanks for reporting!

Could you post some example code?

@jeanas
Copy link
Member

jeanas commented Mar 13, 2023

If you write this:

#'(do re mi fa)

the symbol do is highlighted as a keyword, even though the quoting makes it a simple, unspecial symbol:

image

On the other hand, when writing lispy macros (à la defmacro), this behavior can be useful, so it's not entirely clear that changing this is desirable...

On the other hand, now that LilyPond uses Guile 2, which puts emphasis on the modern syntax-rules/syntax-case-based system, which uses #' (syntax) instead of ' (quote) for the macro output, it might be reasonable to assume that stuff inside a quote is not macro output and should not be highlighted specially.

@jeanas jeanas transferred this issue from frescobaldi/frescobaldi Mar 13, 2023
@jeanas
Copy link
Member

jeanas commented Mar 13, 2023

I have transferred this issue to the python-ly repository.

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

3 participants