regexp: separate token for atomic group

This commit is contained in:
Bas Leijdekkers
2017-01-17 15:41:23 +01:00
parent ce8f8dbd7a
commit 57ca2e7195
10 changed files with 239 additions and 160 deletions

View File

@@ -22,7 +22,7 @@ REGEXP_FILE
PsiElement(COMMA)(',')
PsiElement(RBRACE)('}')
RegExpGroupImpl: <(?>\s)>
PsiElement(NON_CAPT_GROUP)('(?>')
PsiElement(ATOMIC_GROUP)('(?>')
RegExpPatternImpl: <\s>
RegExpBranchImpl: <\s>
RegExpSimpleClassImpl: <\s>

View File

@@ -0,0 +1,20 @@
REGEXP_FILE
RegExpPatternImpl: <(?>atomic)>
RegExpBranchImpl: <(?>atomic)>
RegExpGroupImpl: <(?>atomic)>
PsiElement(ATOMIC_GROUP)('(?>')
RegExpPatternImpl: <atomic>
RegExpBranchImpl: <atomic>
RegExpCharImpl: <a>
PsiElement(CHARACTER)('a')
RegExpCharImpl: <t>
PsiElement(CHARACTER)('t')
RegExpCharImpl: <o>
PsiElement(CHARACTER)('o')
RegExpCharImpl: <m>
PsiElement(CHARACTER)('m')
RegExpCharImpl: <i>
PsiElement(CHARACTER)('i')
RegExpCharImpl: <c>
PsiElement(CHARACTER)('c')
PsiElement(GROUP_END)(')')

View File

@@ -0,0 +1,34 @@
REGEXP_FILE
RegExpPatternImpl: <(?:non-capturing)>
RegExpBranchImpl: <(?:non-capturing)>
RegExpGroupImpl: <(?:non-capturing)>
PsiElement(NON_CAPT_GROUP)('(?:')
RegExpPatternImpl: <non-capturing>
RegExpBranchImpl: <non-capturing>
RegExpCharImpl: <n>
PsiElement(CHARACTER)('n')
RegExpCharImpl: <o>
PsiElement(CHARACTER)('o')
RegExpCharImpl: <n>
PsiElement(CHARACTER)('n')
RegExpCharImpl: <->
PsiElement(CHARACTER)('-')
RegExpCharImpl: <c>
PsiElement(CHARACTER)('c')
RegExpCharImpl: <a>
PsiElement(CHARACTER)('a')
RegExpCharImpl: <p>
PsiElement(CHARACTER)('p')
RegExpCharImpl: <t>
PsiElement(CHARACTER)('t')
RegExpCharImpl: <u>
PsiElement(CHARACTER)('u')
RegExpCharImpl: <r>
PsiElement(CHARACTER)('r')
RegExpCharImpl: <i>
PsiElement(CHARACTER)('i')
RegExpCharImpl: <n>
PsiElement(CHARACTER)('n')
RegExpCharImpl: <g>
PsiElement(CHARACTER)('g')
PsiElement(GROUP_END)(')')