regex: more readable completion type text
authorBas Leijdekkers <basleijdekkers@gmail.com>
Wed, 10 Aug 2016 16:02:53 +0000 (18:02 +0200)
committerBas Leijdekkers <basleijdekkers@gmail.com>
Wed, 10 Aug 2016 17:57:17 +0000 (19:57 +0200)
RegExpSupport/src/org/intellij/lang/regexp/DefaultRegExpPropertiesProvider.java

index a79767fd95131b6cb27b08c2eba0b534953cbd47..c89eb2b246bffc29fd5bc6ff635b0c817828a066 100644 (file)
@@ -27,106 +27,106 @@ public final class DefaultRegExpPropertiesProvider {
   }
 
   private final String[][] myPropertyNames = {
-          { "Cn", "UNASSIGNED" },
-          { "Lu", "UPPERCASE_LETTER" },
-          { "Ll", "LOWERCASE_LETTER" },
-          { "Lt", "TITLECASE_LETTER" },
-          { "Lm", "MODIFIER_LETTER" },
-          { "Lo", "OTHER_LETTER" },
-          { "Mn", "NON_SPACING_MARK" },
-          { "Me", "ENCLOSING_MARK" },
-          { "Mc", "COMBINING_SPACING_MARK" },
-          { "Nd", "DECIMAL_DIGIT_NUMBER" },
-          { "Nl", "LETTER_NUMBER" },
-          { "No", "OTHER_NUMBER" },
-          { "Zs", "SPACE_SEPARATOR" },
-          { "Zl", "LINE_SEPARATOR" },
-          { "Zp", "PARAGRAPH_SEPARATOR" },
-          { "Cc", "CNTRL" },
-          { "Cf", "FORMAT" },
-          { "Co", "PRIVATE USE" },
-          { "Cs", "SURROGATE" },
-          { "Pd", "DASH_PUNCTUATION" },
-          { "Ps", "START_PUNCTUATION" },
-          { "Pe", "END_PUNCTUATION" },
-          { "Pc", "CONNECTOR_PUNCTUATION" },
-          { "Po", "OTHER_PUNCTUATION" },
-          { "Sm", "MATH_SYMBOL" },
-          { "Sc", "CURRENCY_SYMBOL" },
-          { "Sk", "MODIFIER_SYMBOL" },
-          { "So", "OTHER_SYMBOL" },
-          { "Pi", "INITIAL_QUOTE_PUNCTUATION" },
-          { "Pf", "FINAL_QUOTE_PUNCTUATION" },
-          { "L", "LETTER" },
-          { "M", "MARK" },
-          { "N", "NUMBER" },
-          { "Z", "SEPARATOR" },
-          { "C", "CONTROL" },
-          { "P", "PUNCTUATION" },
-          { "S", "SYMBOL" },
-          { "LC", "LETTER" },
-          { "LD", "LETTER_OR_DIGIT" },
-          { "L1", "Latin-1" },
-          { "all", "ALL" },
-          { "ASCII", "ASCII" },
-          { "Alnum", "Alphanumeric characters" },
-          { "Alpha", "Alphabetic characters" },
-          { "Blank", "Space and tab characters" },
-          { "Cntrl", "Control characters" },
-          { "Digit", "Numeric characters" },
-          { "Graph", "printable and visible" },
-          { "Lower", "Lower-case alphabetic" },
-          { "Print", "Printable characters" },
-          { "Punct", "Punctuation characters" },
-          { "Space", "Space characters" },
-          { "Upper", "Upper-case alphabetic" },
-          { "XDigit", "hexadecimal digits" },
-          { "javaLowerCase", },
-          { "javaUpperCase", },
-          { "javaTitleCase", },
-          { "javaAlphabetic", },
-          { "javaIdeographic", },
-          { "javaDigit", },
-          { "javaDefined", },
-          { "javaLetter", },
-          { "javaLetterOrDigit", },
-          { "javaJavaIdentifierStart", },
-          { "javaJavaIdentifierPart", },
-          { "javaUnicodeIdentifierStart", },
-          { "javaUnicodeIdentifierPart", },
-          { "javaIdentifierIgnorable", },
-          { "javaSpaceChar", },
-          { "javaWhitespace", },
-          { "javaISOControl", },
-          { "javaMirrored", },
+    {"Cn", "Unassigned"},
+    {"Lu", "Uppercase letter"},
+    {"Ll", "Lowercase letter"},
+    {"Lt", "Titlecase letter"},
+    {"Lm", "Modifier letter"},
+    {"Lo", "Other letter"},
+    {"Mn", "Non spacing mark"},
+    {"Me", "Enclosing mark"},
+    {"Mc", "Combining spacing mark"},
+    {"Nd", "Decimal digit number"},
+    {"Nl", "Letter number"},
+    {"No", "Other number"},
+    {"Zs", "Space separator"},
+    {"Zl", "Line separator"},
+    {"Zp", "Paragraph separator"},
+    {"Cc", "Control"},
+    {"Cf", "Format"},
+    {"Co", "Private use"},
+    {"Cs", "Surrogate"},
+    {"Pd", "Dash punctuation"},
+    {"Ps", "Start punctuation"},
+    {"Pe", "End punctuation"},
+    {"Pc", "Connector punctuation"},
+    {"Po", "Other punctuation"},
+    {"Sm", "Math symbol"},
+    {"Sc", "Currency symbol"},
+    {"Sk", "Modifier symbol"},
+    {"So", "Other symbol"},
+    {"Pi", "Initial quote punctuation"},
+    {"Pf", "Final quote punctuation"},
+    {"L", "Letter"},
+    {"M", "Mark"},
+    {"N", "Number"},
+    {"Z", "Separator"},
+    {"C", "Control"},
+    {"P", "Punctuation"},
+    {"S", "Symbol"},
+    {"LC", "Letter"},
+    {"LD", "Letter or digit"},
+    {"L1", "Latin-1"},
+    {"all", "All"},
+    {"ASCII", "Ascii"},
+    {"Alnum", "Alphanumeric characters"},
+    {"Alpha", "Alphabetic characters"},
+    {"Blank", "Space and tab characters"},
+    {"Cntrl", "Control characters"},
+    {"Digit", "Numeric characters"},
+    {"Graph", "Printable and visible"},
+    {"Lower", "Lowercase Alphabetic"},
+    {"Print", "Printable characters"},
+    {"Punct", "Punctuation characters"},
+    {"Space", "Space characters"},
+    {"Upper", "Uppercase alphabetic"},
+    {"XDigit", "Hexadecimal digits"},
+    {"javaLowerCase", },
+    {"javaUpperCase", },
+    {"javaTitleCase", },
+    {"javaAlphabetic", },
+    {"javaIdeographic", },
+    {"javaDigit", },
+    {"javaDefined", },
+    {"javaLetter", },
+    {"javaLetterOrDigit", },
+    {"javaJavaIdentifierStart", },
+    {"javaJavaIdentifierPart", },
+    {"javaUnicodeIdentifierStart", },
+    {"javaUnicodeIdentifierPart", },
+    {"javaIdentifierIgnorable", },
+    {"javaSpaceChar", },
+    {"javaWhitespace", },
+    {"javaISOControl", },
+    {"javaMirrored", },
   };
 
   private final String[][] myCharacterClasses = {
-    {"d", "digit: [0-9]"},
-    {"D", "nondigit: [^0-9]"},
-    {"h", "horizontal whitespace character: [ \\t\\xA0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000]"},
-    {"H", "non-horizontal whitespace character: [^\\h]"},
-    {"s", "whitespace: [ \\t\\n\\x0B\\f\\r]"},
-    {"S", "non-whitespace: [^\\s]"},
-    {"v", "vertical whitespace character: [\\n\\x0B\\f\\r\\x85\\u2028\\u2029]"},
-    {"V", "non-vertical whitespace character: [^\\v]"},
-    {"w", "word character: [a-zA-Z_0-9]"},
-    {"W", "nonword character: [^\\w]"},
-    {"b", "word boundary"},
-    {"B", "non-word boundary"},
-    {"A", "beginning of the input"},
-    {"G", "end of the previous match"},
-    {"Z", "end of the input but for the final terminator, if any"},
-    {"z", "end of input"},
-    {"Q", "nothing, but quotes all characters until \\E"},
-    {"E", "nothing, but ends quoting started by \\Q"},
-    {"t", "tab character ('\\u0009')"},
-    {"n", "newline (line feed) character ('\\u000A')"},
-    {"r", "carriage-return character ('\\u000D')"},
-    {"f", "form-feed character ('\\u000C')"},
-    {"a", "alert (bell) character ('\\u0007')"},
-    {"e", "escape character ('\\u001B')"},
-    {"R", "unicode line ending: \\u000D\\u000A|[\\u000A\\u000B\\u000C\\u000D\\u0085\\u2028\\u2029]"}
+    {"d", "Digit: [0-9]"},
+    {"D", "Nondigit: [^0-9]"},
+    {"h", "Horizontal whitespace character: [ \\t\\xA0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000]"},
+    {"H", "Non-horizontal whitespace character: [^\\h]"},
+    {"s", "Whitespace: [ \\t\\n\\x0B\\f\\r]"},
+    {"S", "Non-whitespace: [^\\s]"},
+    {"v", "Vertical whitespace character: [\\n\\x0B\\f\\r\\x85\\u2028\\u2029]"},
+    {"V", "Non-vertical whitespace character: [^\\v]"},
+    {"w", "Word character: [a-zA-Z_0-9]"},
+    {"W", "Nonword character: [^\\w]"},
+    {"b", "Word boundary"},
+    {"B", "Non-word boundary"},
+    {"A", "Beginning of the input"},
+    {"G", "End of the previous match"},
+    {"Z", "End of the input but for the final terminator, if any"},
+    {"z", "End of input"},
+    {"Q", "Nothing, but quotes all characters until \\E"},
+    {"E", "Nothing, but ends quoting started by \\Q"},
+    {"t", "Tab character ('\\u0009')"},
+    {"n", "Newline (line feed) character ('\\u000A')"},
+    {"r", "Carriage-return character ('\\u000D')"},
+    {"f", "Form-feed character ('\\u000C')"},
+    {"a", "Alert (bell) character ('\\u0007')"},
+    {"e", "Escape character ('\\u001B')"},
+    {"R", "Unicode line ending: \\u000D\\u000A|[\\u000A\\u000B\\u000C\\u000D\\u0085\\u2028\\u2029]"}
   };
 
   private final String[][] myPosixCharacterClasses = {