Skip to content

Commit 4af7629

Browse files
committed
Handle PR review feedback on inline struct field regex
1 parent 7dcb7ca commit 4af7629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spx-gui/src/utils/xgo/gop-tm-language.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,8 +1930,8 @@
19301930
}
19311931
},
19321932
{
1933-
"comment": "one line with semicolon(;) without formatting gofmt - single type | property variables and types",
1934-
"match": "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?([^;`\\\"\\/}]+)(?:\\;|(?=\\})))",
1933+
"comment": "one field per match - semicolon-terminated or ending before } - handles inline struct fields with optional variable names",
1934+
"match": "(?:\\s*((?:\\w+\\s*,\\s*)*\\w+\\s+)?([^\\s;`\\\"\\/}\\r\\n][^;`\\\"\\/}\\r\\n]*)(?:\\;|(?=\\})))",
19351935
"captures": {
19361936
"1": {
19371937
"patterns": [

0 commit comments

Comments
 (0)