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

[Suggestion]: generalize ; for argument delimiter #47

Open
boltlessengineer opened this issue Sep 12, 2024 · 1 comment
Open

[Suggestion]: generalize ; for argument delimiter #47

boltlessengineer opened this issue Sep 12, 2024 · 1 comment

Comments

@boltlessengineer
Copy link

In #39, we discussed about using ; as an attribute delimiting modifier.

We can generalize this for other argument-style grammars.
Currently one I can think of is macro arguments:

.image path/to/image.png; more; arguments
@code bash; nonumber
@end

There was a suggestion to separate attributes and macros (#38), and I don’t think having similar syntax for arguments will make user confused as long as we use different prefixes.

@boltlessengineer
Copy link
Author

We can also adopt this to norg-meta grammar:

categories: [cool project idea; neovim]

Now ; is used to separate multiple inline elements in all Norg syntax. Making general Norg syntax more consistent.

  • attributes (for both detached/attached modifiers)
  • macro parameters
  • arrays in norg-meta

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