We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dcb7ca commit 4af7629Copy full SHA for 4af7629
spx-gui/src/utils/xgo/gop-tm-language.json
@@ -1930,8 +1930,8 @@
1930
}
1931
},
1932
{
1933
- "comment": "one line with semicolon(;) without formatting gofmt - single type | property variables and types",
1934
- "match": "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?([^;`\\\"\\/}]+)(?:\\;|(?=\\})))",
+ "comment": "one field per match - semicolon-terminated or ending before } - handles inline struct fields with optional variable names",
+ "match": "(?:\\s*((?:\\w+\\s*,\\s*)*\\w+\\s+)?([^\\s;`\\\"\\/}\\r\\n][^;`\\\"\\/}\\r\\n]*)(?:\\;|(?=\\})))",
1935
"captures": {
1936
"1": {
1937
"patterns": [
0 commit comments