Skip to content

Commit

Permalink
Updating skip syntax for if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed May 31, 2024
1 parent 086b9c0 commit 6cbfe1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/syntax/c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ rules:
- constant.string:
start: "'"
end: "'"
skip: "(\\\\.)|(.*[^']$)"
skip: "(\\\\.)|('[^']{2,}$)"
rules:
- error: "..+'"
- constant.specialChar: "\\\\([\"'abfnrtv\\\\]|[0-3]?[0-7]{1,2}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})"
Expand Down
2 changes: 1 addition & 1 deletion runtime/syntax/cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rules:
- constant.string:
start: "'"
end: "'"
skip: "(\\\\.)|(.*[^']$)"
skip: "(\\\\.)|('[^']{2,}$)"
rules:
- error: "..+'"
- constant.specialChar: "\\\\([\"'abfnrtv\\\\]|[0-3]?[0-7]{1,2}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})"
Expand Down

0 comments on commit 6cbfe1c

Please sign in to comment.