-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Feat Request] An option to make \n
work as delimter
#4
Comments
What is FTB Quests? |
It's a mod for writing quests. https://www.curseforge.com/minecraft/mc-mods/ftb-quests-forge I opened an issue suggesting them to switch to standard SNBT not long ago, but no reply yet. |
Would like to request the same. Configuring FTB Ranks & FTB Essentials now. They are still using |
👉👈 |
I tried to add there's a real-world example, showing syntax highlighting for an SNBT file that uses both |
@ZZZank Awesome. Seems like you find where the regex about delimiter at. But is it real SNBT can use two different delimiters at the same time? Is there any plan to make a pull request of your commit on the author's branch so that a new version of the extension can be released? |
@ZZZank Would you like to make a PR for this feature? And I think it needs to be controlled by an option, which is disabled by default. |
This is apparently not standard, but some popular SNBT parsers (like the one embedded in FTB Library) actually do support using
Indeed better than always accepting |
I think an option is not so necessary, as we can already use the two delimiters freely now. But there still can be a boolean option to determine which of These two is quite enough (and thanks to FTB we've got two now) and further customization of delimiter should be avoided as we all don't want to see SNBT to be the unique file format allowing using random delimiter. |
As a reference, vscode support a format named "JSON (with comments)" as a supplement of standard JSON. I believe the non-standard NBT should be regard as language other than the standard one. |
At present I think SNBT is too narrowly used to be split into two languages. While FTB team's usage of SNBT is not considered standard, since their mods are somehow widely used among mod servers, I think their standard should be accepted temporarily so that configuring FTB mods won't be colorless. As @ZZZank said they hadn't replied to the request of changing the delimiter to |
But on the other hand, if we accept both |
Yes, that's right. In this case, adding an option to avoid hybrid use of two delimiters becomes necessary. See my previous reply:
|
We can't implement this due to current technical limitations. Unless we split it into two languages. Or we write a language server instead. I think provide a second language in the extension is the best solution. |
Hi again, I've implemented seperate supports for Vanilla and FTB style SNBT support in #5 |
FTB Quests currently uses an unusual SNBT format, where

\n
, instead of,
, is used as delimiter. So the syntax-highlighter will interpret such file as:The text was updated successfully, but these errors were encountered: