From 3828e1824871d5feac2ff064cd576bdccc3ff66b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20=C5=A0torc?= <storcond@fit.cvut.cz>
Date: Tue, 28 Mar 2023 13:32:30 +0200
Subject: [PATCH] cli: Identifiers doesn't start with :

---
 alib2cli/src/grammar/AltCliLexer.g4      | 2 +-
 alib2cli/test-src/aql/basic/execute6.aql | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 alib2cli/test-src/aql/basic/execute6.aql

diff --git a/alib2cli/src/grammar/AltCliLexer.g4 b/alib2cli/src/grammar/AltCliLexer.g4
index 9a420bdcf..c94ddd980 100644
--- a/alib2cli/src/grammar/AltCliLexer.g4
+++ b/alib2cli/src/grammar/AltCliLexer.g4
@@ -122,7 +122,7 @@ INTEGER : [0-9]+;
 //FILE : ([0-9] | [a-z] | [A-Z] | '/' | '.' | '-' | '~' | '~' | '_' | ':' | '\\')+ ;
 
 // TODO: Id
-IDENTIFIER  : ([a-z] | [A-Z] | '_' | ':' ) ([0-9] | [a-z] | [A-Z] | '_' | ':' )* ;
+IDENTIFIER  : ([a-z] | [A-Z] | '_' ) ([0-9] | [a-z] | [A-Z] | '_' | ':' )* ;
 
 
 STRING  : DQUOTE ( STR_TEXT | EOL )* DQUOTE ;
diff --git a/alib2cli/test-src/aql/basic/execute6.aql b/alib2cli/test-src/aql/basic/execute6.aql
new file mode 100644
index 000000000..a73a4ba0a
--- /dev/null
+++ b/alib2cli/test-src/aql/basic/execute6.aql
@@ -0,0 +1 @@
+execute <:int #2
\ No newline at end of file
-- 
GitLab