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

languages: add templ #8540

Merged
merged 1 commit into from
Oct 21, 2023
Merged

languages: add templ #8540

merged 1 commit into from
Oct 21, 2023

Conversation

rsteube
Copy link
Contributor

@rsteube rsteube commented Oct 15, 2023

Added templ.

The captures probably still need some renaming.
Is the structure.scm needed?

Quickstart
IDE Support

@rsteube rsteube changed the title language: added templ languages: added templ Oct 15, 2023
@rsteube rsteube force-pushed the templ branch 2 times, most recently from 98ebe2c to 124d543 Compare October 15, 2023 11:31
@rsteube rsteube marked this pull request as ready for review October 16, 2023 18:50
runtime/queries/templ/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/templ/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/templ/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/templ/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/templ/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/templ/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/templ/structure.scm Outdated Show resolved Hide resolved
@the-mikedavis the-mikedavis added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. A-language-support Area: Support for programming/text languages labels Oct 17, 2023
@rsteube rsteube marked this pull request as draft October 17, 2023 10:26
@rsteube rsteube marked this pull request as ready for review October 17, 2023 10:32
@the-mikedavis
Copy link
Member

It looks like the tree-sitter-templ scanner.c causes has some compilation errors on Windows

@rsteube
Copy link
Contributor Author

rsteube commented Oct 17, 2023

  D:\a\helix\helix\runtime\grammars\sources\templ\src\scanner.c(67): warning C4189: 'found': local variable is initialized but not referenced
  D:\a\helix\helix\runtime\grammars\sources\templ\src\scanner.c(93): error C2016: C requires that a struct or union have at least one member
  D:\a\helix\helix\runtime\grammars\sources\templ\src\scanner.c(341): warning C4244: 'function': conversion from 'int32_t' to 'wint_t', possible loss of data

Is it related to https://github.com/vrischmann/tree-sitter-templ/blob/master/src/scanner.c#L93 not having any member?
Or is that error just a warning and something other causes the failed build?

@the-mikedavis
Copy link
Member

Yep, I believe the warnings are benign but the error from the line you linked stops compilation

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor note in the languages.toml, otherwise I think this looks good

languages.toml Outdated Show resolved Hide resolved
@the-mikedavis the-mikedavis added S-waiting-on-review Status: Awaiting review from a maintainer. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 21, 2023
@the-mikedavis the-mikedavis changed the title languages: added templ languages: add templ Oct 21, 2023
@pascalkuthe pascalkuthe merged commit 764715a into helix-editor:master Oct 21, 2023
6 checks passed
@rsteube rsteube deleted the templ branch October 21, 2023 12:39
danillos pushed a commit to danillos/helix that referenced this pull request Nov 21, 2023
dgkf pushed a commit to dgkf/helix that referenced this pull request Jan 30, 2024
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants