mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[intellij-sh] Grammars cleanup
GitOrigin-RevId: 2679df320e5acbb027069ae9ad08e2105414cf41
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1a00c10137
commit
3fdd14c9d5
@@ -114,6 +114,7 @@
|
||||
|
||||
pin('.*list(?:_\d.*)?')=1
|
||||
pin('.*_(command|clause)')=1
|
||||
extends("variable|string|number")=literal
|
||||
extends(".*command|function_definition")=command
|
||||
|
||||
implements("function_definition|assignment_command|assignment_expression")="com.intellij.psi.PsiNameIdentifierOwner"
|
||||
@@ -303,13 +304,10 @@ literal ::= word | string | number | variable {
|
||||
}
|
||||
private not_lvalue ::= '!' | vars | '$' | brace_expansion | 'file descriptor'
|
||||
brace_expansion ::= '{' (word | brace_expansion)* '}'
|
||||
variable ::= var {
|
||||
methods=[getReferences]
|
||||
extends=literal
|
||||
}
|
||||
variable ::= var { methods=[getReferences] }
|
||||
|
||||
number ::= int | hex | octal {extends=literal}
|
||||
string ::= OPEN_QUOTE (STRING_CONTENT | vars | <<notQuote>>)* CLOSE_QUOTE | RAW_STRING {pin(".*")=1 extends=literal}
|
||||
number ::= int | hex | octal
|
||||
string ::= OPEN_QUOTE (STRING_CONTENT | vars | <<notQuote>>)* CLOSE_QUOTE | RAW_STRING {pin(".*")=1}
|
||||
private w ::= word | string | number | not_lvalue
|
||||
private newlines ::= '\n'*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user