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 9ed60c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/syntax/c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ rules:
- constant.string:
start: "'"
end: "'"
skip: "(\\\\.)|(.*[^']$)"
skip: "(\\\\.)|([^']{4}'[^']{4})"
rules:
- error: "..+'"
- error: "[[:graph:]]{2,}"
- 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})"

- comment:
Expand Down
4 changes: 2 additions & 2 deletions runtime/syntax/cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ rules:
- constant.string:
start: "'"
end: "'"
skip: "(\\\\.)|(.*[^']$)"
skip: "(\\\\.)|([^']{4}'[^']{4})"
rules:
- error: "..+'"
- error: "[[:graph:]]{2,}"
- 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})"

- comment:
Expand Down

0 comments on commit 9ed60c8

Please sign in to comment.