Comments (5)
I have just made release 0.0.25 which should fix the issue with nested arrays. It should become available on the marketplace in a couple of days
from intellij-wgsl.
Hi @rosingrind I'm using the stuff in IntelliJ to generate the files. I'll take a look at what it is doing.
from intellij-wgsl.
I've tried to look into the issue, it seems that besides of a trivial problem with lexing/parsing rules, something may be wrong with generated lexer/parser classes. I'm on IU-2023.1
using plugin GK-2022.3.2
(jflex-1.9.1
) but tested this with jflex-1.7.0-2
also and I've encountered something weird: if you erase gen
directory and generate lexer + parser, you'll get a lot of diffs:
Most of these diffs are generated boilerplate getters/setters for internals. Are you using some kind of automation to perform generation? I'm questioning because of a known issue with gradle-based support for grammar-kit
JetBrains/gradle-grammar-kit-plugin#3
Some of generated files contained a bit of trivial to fix problems:
WGSLVariableIdentDecl.java
contains duplicates for generatedPsiElement setName(String name)
_WgslLexer.java
contains duplicates ofzzAtBOL
andzzEOFDone
It seems to me that lexer and parser files may be not in sync to produce fully-correct output, or there are some hand-crafted parsing procedures (or it's just about updated jflex and grammar-kit). I'm writing this to ask if grammar files may be left hanging mid-refactoring, because if so - it's not possible for volunteers to fix any such issue. @dparnell please update the situation with any status, and thanks for the plugin!
from intellij-wgsl.
Adding a space between the brackets solves the issue.
Produced from this, there is a brace-matching behavior bug. Assuming you have this code:
fn test() {
let a = a[a[a]];
}
Place cursor after first opening {
and press return
- you'll get a matching pair inserted
fn test() {
}
let a = a[a[a]];
}
from intellij-wgsl.
Thanks for the fix!
from intellij-wgsl.
Related Issues (20)
- @stage(...) is now @vertex / @fragment / @compute HOT 3
- Support preprocessor #ifdef, #define, ... HOT 4
- "Comment" action should toggle comment HOT 4
- Icon placeholder(?) in "Quick Documentation" HOT 3
- Allow more navigation and refactoring actions? HOT 2
- `WGSLTokenType.LESS_THAN expected, got '('` HOT 7
- for loop update should allow compound assignment HOT 4
- Not compatible with the version of your running IDE (WebStorm 2022.2) HOT 9
- [BUG] ">>" - Syntax error that isn't an error HOT 7
- I'd like the option to set the WSGL Version. HOT 5
- Fix matrix trailing space issues HOT 4
- Wrong types get suggested HOT 3
- Add support for `const` keyword HOT 5
- Add support for constant sized arrays HOT 3
- Invalid type suggestions HOT 2
- Keywords that get suggested get marked as red by the parser HOT 1
- This plugin does not currently support CLion 2022.3 HOT 2
- Custom imports support HOT 4
- Argument for @NotNull parameter 'lookupString' of LookupElementBuilder.create must not be null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-wgsl.