8000 Lexer for the WebGPU Shading Language by dneto0 · Pull Request #2386 · pygments/pygments · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@dneto0
Copy link
Contributor
@dneto0 dneto0 commented Mar 25, 2023

See https://w3.org/TR/WGSL

Further work is needed to refine it:

  • treat context-dependent names specially
  • treat template start and template end tokens specially, perhaps

Fixes: #2388

@dneto0 dneto0 force-pushed the wgsl-lexer branch 2 times, most recently from a48ba92 to 1cf56a9 Compare March 25, 2023 20:18
dneto0 added a commit to dneto0/chroma that referenced this pull request Mar 25, 2023
dneto0 added a commit to dneto0/chroma that referenced this pull request Mar 26, 2023
alecthomas pushed a commit to alecthomas/chroma that referenced this pull request Mar 26, 2023
See https://w3.org/TR/WGSL

Further work is needed to refine it:
- treat context-dependent names specially
- treat template start and template end tokens specially, perhaps

Fixes: pygments#2388
@Anteru
Copy link
Collaborator
Anteru commented Mar 27, 2023

Hey, long time no see. I've run the checks, let's see how they go. Maybe we can squeeze this into the 2.15 release :)

@dneto0
Copy link
Contributor Author
dneto0 commented Mar 28, 2023

I have also added tests for the various predeclared names in WGSL, which map to 'Name.Builtin'.
Earlier I had a typo in one of the texel formats, which I already fixed.

@Anteru
Copy link
Collaborator
Anteru commented Mar 30, 2023

@jeanas Anything from your side? Looks good to go for me.

@jeanas jeanas merged commit 5175d68 into pygments:master Mar 30, 2023
@dneto0
Copy link
Contributor Author
dneto0 commented Mar 30, 2023

Thank you!

@Anteru Anteru added the A-lexing area: changes to individual lexers label Apr 10, 2023
@Anteru Anteru added this to the 2.15.0 milestone Apr 10, 2023
ChristoferDutz added a commit to ChristoferDutz/chroma that referenced this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add lexer for WebGPU Shading Language

3 participants

0