-
Notifications
You must be signed in to change notification settings - Fork 5
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
Section namespaces #53
Comments
All |
I don't know. Seems like a lot of work, and there must be something we could do behind the scenes to make it easier. |
At least, a compiler warning for duplicate section id's would be great. |
Also simplified file paths in error messages to be project-relative so they're not so verbose and ugly
There is a known issue here where the reported line number of the duplicate section definition may be wrong (it mostly seems to just be zero). That's being tracked on #59. |
With projects of a certain size, it will be necessary to allow disambiguation between duplicate section names. This could be handled automatically by making each source file a namespace, or they could be organized by subfolders, or they could be defined manually somehow.
Maybe namespaces are organized by file automatically, but are invisible until disambiguation is necessary. For example, a link to section
{@Section3}
will automatically direct to{{Section3}}
declared in a different file, unless{{Section3}}
is declared in the current file, in which case the local instance takes precedence. To disambiguate, we could use the syntax{@otherfile/Section3}
.The text was updated successfully, but these errors were encountered: