diff --git a/grammar/hxml.bnf b/grammar/hxml.bnf index 157899236..a044940cc 100644 --- a/grammar/hxml.bnf +++ b/grammar/hxml.bnf @@ -31,8 +31,16 @@ private line_recovery ::= !(eol_) private option_ ::= (lib | define | classpath | main | property | COMMENT) property ::= option value? {pin=1} -define ::= '-D' value {pin=1} -lib ::= '-lib' value (':' value)? {pin=1} -classpath ::= '-cp' value {pin=1} -main ::= '-main' qualifiedName {pin=1} +define ::= ('-D'|'--define') value {pin=1} +lib ::= (libHx3|libHx4) value (':' value)? {pin=1} +private libHx3 ::= '-lib' +private libHx4 ::= '-L'|'--library' + +classpath ::= (classpathHx3|classpathHx4) value {pin=1} +private classpathHx3 ::= '-cp' +private classpathHx4 ::= '-p' + +main ::= (mainHx3| mainHx4) qualifiedName {pin=1} +private mainHx3 ::= '-main' +private mainHx4 ::= '-m'| '--main' diff --git a/src/META-INF/plugin.xml b/src/META-INF/plugin.xml index 0fc2a3536..22eda0a38 100644 --- a/src/META-INF/plugin.xml +++ b/src/META-INF/plugin.xml @@ -85,6 +85,8 @@ Unreleased changes