Skip to content

Commit

Permalink
fix: Add missing SQL grammar keywords for highlighting SQL queries
Browse files Browse the repository at this point in the history
  • Loading branch information
bahattincinic committed Jun 8, 2024
1 parent 6ae1aba commit 7b221d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/src/components/SQLEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,16 @@ export default {
tokenizer: {
root: [
[/\bselect\b/i, 'keyword'],
[/\band\b/i, 'keyword'],
[/\bor\b/i, 'keyword'],
[/\bfrom\b/i, 'keyword'],
[/\bwhere\b/i, 'keyword'],
[/\blimit\b/i, 'keyword'],
[/\blike\b/i, 'keyword'],
[/\bis not null\b/i, 'keyword'],
[/\bis not\b/i, 'keyword'],
[/\binner join\b/i, 'keyword'],
[/\bleft join\b/i, 'keyword'],
[/\border by\b/i, 'keyword'],
[/\bgroup by\b/i, 'keyword'],
],
Expand Down

0 comments on commit 7b221d9

Please sign in to comment.