From 6ac001b07537f85aeb5f44aa9a77e0ecc9e16621 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 10 Oct 2009 22:29:41 +0100 Subject: [PATCH] =?UTF-8?q?IDEADEV-40801=20There=20is=20no=20code=20comple?= =?UTF-8?q?tion=20if=20you=20name=20your=20variables=20with=20special=20le?= =?UTF-8?q?ading=20character=20like=20'=E2=80=8B=E2=82=AC'=20or=20'?= =?UTF-8?q?=E2=80=8B$=E2=80=8B'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../util/src/com/intellij/psi/codeStyle/NameUtil.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java b/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java index 131bd261a43b..bcc8d62e5524 100644 --- a/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java +++ b/platform/util/src/com/intellij/psi/codeStyle/NameUtil.java @@ -124,8 +124,8 @@ public class NameUtil { // buffer.append(Integer.toHexString(c + 0x20000).substring(1)); // for OROMATCHER RegExp engine - buffer.append("\\x"); - buffer.append(Integer.toHexString(c + 0x20000).substring(3)); + buffer.append("\\").append(c); + //buffer.append(Integer.toHexString(c + 0x20000).substring(2)); } } @@ -208,8 +208,8 @@ public class NameUtil { // buffer.append(Integer.toHexString(c + 0x20000).substring(1)); // for OROMATCHER RegExp engine - buffer.append("\\x"); - buffer.append(Integer.toHexString(c + 0x20000).substring(3)); + buffer.append("\\").append(c); + //buffer.append(Integer.toHexString(c + 0x20000).substring(3)); } } @@ -351,7 +351,7 @@ public class NameUtil { return builder.toString(); } - /** + /* * Don't try regexp matcher on names, which do not contain all the alphanumerics from the pattern in pattern's original order. */ private boolean prefilter(String name, char[] pattern) {