/*
 * Copyright 2000-2016 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.intellij.lang.regexp;

/**
 * @author yole
 */
public enum RegExpCapability {
  XML_SCHEMA_MODE,
  DANGLING_METACHARACTERS,
  NESTED_CHARACTER_CLASSES,
  OCTAL_NO_LEADING_ZERO,
  OMIT_NUMBERS_IN_QUANTIFIERS,
  COMMENT_MODE,
  ALLOW_HEX_DIGIT_CLASS,
  ALLOW_EMPTY_CHARACTER_CLASS,
  ALLOW_HORIZONTAL_WHITESPACE_CLASS,
  UNICODE_CATEGORY_SHORTHAND,
  POSIX_BRACKET_EXPRESSIONS,
  CARET_NEGATED_PROPERTIES
}

@@ -757,16 +757,174 @@
 CLASSES,
+%0A%0A  /**%0A   * supports three-digit octal numbers not started with 0 (e.g. %5C123), %0A   * if false %5C1 from %5C123 will be considered as a group back reference%0A   */
 %0A  OCTAL
@@ -941,16 +941,17 @@
 G_ZERO,%0A
+%0A
   OMIT_N
@@ -1111,16 +1111,100 @@
 ORTHAND,
+%0A%0A  /**%0A   * supports expressions like %5B%5B:alpha:%5D%5D, %5B%5E%5B:alpha:%5D%5D, %5B%5B:%5Ealpha:%5D%5D%0A   */
 %0A  POSIX
@@ -1225,16 +1225,17 @@
 SSIONS,%0A
+%0A
   CARET_

Add some docs