nvim-neorg / norg-specs

A collection of specifications and grammars for Neorg's file format, `norg`.
90 stars 17 forks source link

[Suggestion]: generalize `;` for argument delimiter #47

Open boltlessengineer opened 2 months ago

boltlessengineer commented 2 months ago

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 commented 2 months ago

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.