diff --git a/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlLexer.g4 b/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlLexer.g4 index 753fb1986d..43a45577a3 100644 --- a/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlLexer.g4 +++ b/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlLexer.g4 @@ -69,8 +69,6 @@ BIG_DECIMAL_LITERAL : FLOATING_POINT_NUMBER BIG_DECIMAL_SUFFIX; HEX_LITERAL : '0' [xX] HEX_DIGIT+ LONG_SUFFIX?; -OCTAL_LITERAL : '0' ('0'..'7')+ ('l'|'L')?; - fragment SINGLE_QUOTE : '\''; fragment DOUBLE_QUOTE : '"'; @@ -95,14 +93,6 @@ UNICODE_ESCAPE : 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT ; -fragment -OCTAL_ESCAPE - : BACKSLASH ('0'..'3') ('0'..'7') ('0'..'7') - | BACKSLASH ('0'..'7') ('0'..'7') - | BACKSLASH ('0'..'7') - ; - - // ESCAPE start tokens TIMESTAMP_ESCAPE_START : '{ts'; DATE_ESCAPE_START : '{d'; diff --git a/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4 b/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4 index 51ec962e5c..81a3ebbedb 100644 --- a/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4 +++ b/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4 @@ -508,7 +508,6 @@ literal | DOUBLE_LITERAL | BIG_DECIMAL_LITERAL | HEX_LITERAL - | OCTAL_LITERAL | NULL | TRUE | FALSE