Conversation
rchl
force-pushed
the
feat/init
branch
2 times, most recently
from
January 8, 2026 17:04
a8d7b96 to
dc60556
Compare
deathaxe
reviewed
Jan 8, 2026
deathaxe
reviewed
Jan 8, 2026
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Member
Author
|
Thanks for awesome suggestions. |
deathaxe
reviewed
Jan 8, 2026
deathaxe
reviewed
Jan 8, 2026
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Member
Author
Co-authored-by: deathaxe <16542113+deathaxe@users.noreply.github.com>
Member
|
This is somehow related with how, c++ syntax handles global scopes. If - as it seems - normal statements are required, only, it may be viable to include |
Member
Author
|
This seems to produce better highlighting all around so I will go with that. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Add syntax for ESPHome configuration files.
This syntax extends YAML syntax to add support for
lambdakey/tag that can embed c++ code blocks.Something to consider:
I've chosen a
source.yaml-esphomemain scope instead ofsource.yaml.esphomemainly due to how LSP works but also to match the vscode syntax.The advantage of
source.yaml-esphomein context of LSP is that the YAML language server will NOT automatically run for this syntax and we don't want that since it doesn't understand extensions of this syntax. Alternatively we could usesource.yaml.esphomeand editLSP-yaml's configuration to exclude it.One disadvantage of
source.yaml-esphomethat I've noticed is that built-in color schemes (f.ex. Mariana) include a rule to color unquoted strings white and that won't automatically work withsource.yaml-esphomescope. There are perhaps also other YAML packages/plugins that would not automatically work with that scope.