Skip to content

Commit 1b41be4

Browse files
committed
Increase depth for matching parens, bracews and brackets
Fixes #816
1 parent 59b62cb commit 1b41be4

File tree

5 files changed

+293
-163
lines changed

5 files changed

+293
-163
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ variables:
5555
lookBehindCase: '^case|{{nonPropertyLookBehind}}case'
5656
lookBehindImport: '^import|{{nonPropertyLookBehind}}import'
5757
lookAheadEndOfType: '[;),}\]:?\-\+\>]|\|\||\&\&|\!\=\=|$'
58-
matchingParenthesis: (\(([^\(\)]|(\([^\(\)]*\)))*\))
59-
matchingBraces: (\{([^\{\}]|(\{[^\{\}]*\}))*\})
60-
matchingBrackets: (\[([^\[\]]|(\[[^\[\]]*\]))*\])
58+
matchingParenthesis: (\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))
59+
matchingBraces: (\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})
60+
matchingBrackets: (\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])
6161
inlineComment: \/\*([^\*]|(\*[^\/]))*\*\/
6262
startOfDeclaration: '{{startOfIdentifier}}(?:(\bexport)\s+)?(?:(\bdeclare)\s+)?'
6363
lookBehindOfPossiblyMultilineArrowWithDestructuring: (?<=[(=,])

0 commit comments

Comments
 (0)