Skip to content

Commit 3127277

Browse files
committed
Add keyword
1 parent 6012e39 commit 3127277

File tree

1 file changed

+10
-1
lines changed
  • src/main/java/org/domaframework/doma/intellij

1 file changed

+10
-1
lines changed

src/main/java/org/domaframework/doma/intellij/Sql.flex

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import org.domaframework.doma.intellij.psi.SqlTypes;
2929
"as",
3030
"asc",
3131
"between",
32+
"breadth",
3233
"by",
3334
"case",
3435
"change",
@@ -39,6 +40,7 @@ import org.domaframework.doma.intellij.psi.SqlTypes;
3940
"comment",
4041
"create",
4142
"cross",
43+
"cycle",
4244
"database",
4345
"default",
4446
"delete",
@@ -72,6 +74,7 @@ import org.domaframework.doma.intellij.psi.SqlTypes;
7274
"not",
7375
"nothing",
7476
"null",
77+
"materialized",
7578
"modify",
7679
"offset",
7780
"on",
@@ -81,7 +84,10 @@ import org.domaframework.doma.intellij.psi.SqlTypes;
8184
"primary",
8285
"references",
8386
"rename",
87+
"returning",
88+
"recursive",
8489
"right",
90+
"search",
8591
"select",
8692
"set",
8793
"table",
@@ -92,10 +98,12 @@ import org.domaframework.doma.intellij.psi.SqlTypes;
9298
"union",
9399
"unique",
94100
"update",
101+
"using",
95102
"values",
96103
"view",
97104
"when",
98-
"where"
105+
"where",
106+
"with"
99107
);
100108

101109
// COLUMN DataTypes
@@ -128,6 +136,7 @@ import org.domaframework.doma.intellij.psi.SqlTypes;
128136
);
129137

130138
private static boolean isKeyword(CharSequence word) {
139+
// TODO Reads plugin settings and allows users to register arbitrary keywords
131140
return KEYWORDS.contains(word.toString().toLowerCase());
132141
}
133142

0 commit comments

Comments
 (0)