diff --git a/editor.bracesmatching/manifest.mf b/editor.bracesmatching/manifest.mf --- a/editor.bracesmatching/manifest.mf +++ b/editor.bracesmatching/manifest.mf @@ -1,6 +1,6 @@ -Manifest-Version: 1.0 -OpenIDE-Module: org.netbeans.modules.editor.bracesmatching/0 -OpenIDE-Module-Layer: org/netbeans/modules/editor/bracesmatching/layer.xml -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/editor/bracesmatching/Bundle.properties -OpenIDE-Module-Specification-Version: 1.20 -AutoUpdate-Show-In-Client: false +Manifest-Version: 1.0 +OpenIDE-Module: org.netbeans.modules.editor.bracesmatching/0 +OpenIDE-Module-Layer: org/netbeans/modules/editor/bracesmatching/layer.xml +OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/editor/bracesmatching/Bundle.properties +OpenIDE-Module-Specification-Version: 1.20 +AutoUpdate-Show-In-Client: false diff --git a/editor.bracesmatching/src/org/netbeans/spi/editor/bracesmatching/support/BracesMatcherSupport.java b/editor.bracesmatching/src/org/netbeans/spi/editor/bracesmatching/support/BracesMatcherSupport.java --- a/editor.bracesmatching/src/org/netbeans/spi/editor/bracesmatching/support/BracesMatcherSupport.java +++ b/editor.bracesmatching/src/org/netbeans/spi/editor/bracesmatching/support/BracesMatcherSupport.java @@ -276,6 +276,9 @@ if (MatcherContext.isTaskCanceled()) { return -1; } + if (text.array[text.offset + i] == '\"') { + return -1; + } if (origin == text.array[text.offset + i]) { count++; } else if (matching == text.array[text.offset + i]) { @@ -296,6 +299,9 @@ if (MatcherContext.isTaskCanceled()) { return -1; } + if (text.array[text.offset + i] == '\"') { + return -1; + } if (origin == text.array[text.offset + i]) { count++; } else if (matching == text.array[text.offset + i]) {