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

No strings #16

Open
mmoderau opened this issue Jun 3, 2020 · 1 comment
Open

No strings #16

mmoderau opened this issue Jun 3, 2020 · 1 comment
Assignees

Comments

@mmoderau
Copy link

mmoderau commented Jun 3, 2020

This mode does not treat quoted strings as strings. I am aware this is on purpose:

    ;; In BNF there are no strings
    ;; so treat ' and " as a symbols
    (modify-syntax-entry ?\" "_" table)
    (modify-syntax-entry ?\' "_" table)

All resources I could find about pure BNF (as opposed to EBNF and ABNF) show quoted strings.

This decision prevents specifying terminals as strings, especially strings containing a semicolon (unless escaped with a backslash as "\;").

I believe double quoted strings should be restored.

@sergeyklay
Copy link
Owner

@macmodrov Well, we can add strings support as an optional feature. So that, users will able to configure symbols recognized by mode as a valid set. What do you think about this?

@sergeyklay sergeyklay self-assigned this Dec 5, 2022
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

2 participants