Skip to content

Commit

Permalink
Merge pull request #1638 from OskarDamkjaer/missing_keywords
Browse files Browse the repository at this point in the history
Add missing keywords
  • Loading branch information
OskarDamkjaer committed Jan 14, 2022
2 parents 69df29f + b91f394 commit ca42eb5
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions src/browser/modules/Editor/CypherMonacoThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import { editor } from 'monaco-editor/esm/vs/editor/editor.api'
import { base, dark } from 'browser-styles/themes'
import {
LIGHT_THEME,
OUTLINE_THEME,
DARK_THEME
} from 'shared/modules/settings/settingsDuck'

type BrowserTheme =
| typeof LIGHT_THEME
| typeof OUTLINE_THEME
| typeof DARK_THEME
import { base, dark } from 'browser-styles/themes'

// colors from cypher-editor/cypher-codemirror/src/css/_solarized.css
const enum CypherColor {
Expand Down Expand Up @@ -127,6 +117,7 @@ const operators: string[] = [
const keywords: string[] = [
'access',
'active',
'alias',
'admin',
'administrator',
'all',
Expand All @@ -140,8 +131,10 @@ const keywords: string[] = [
'assert',
'assign',
'boosted',
'identifier',
'brief',
'btree',
'built',
'by',
'call',
'case',
Expand All @@ -157,6 +150,7 @@ const keywords: string[] = [
'csv',
'current',
'cypher',
'data',
'database',
'databases',
'dbms',
Expand All @@ -166,16 +160,22 @@ const keywords: string[] = [
'deny',
'desc',
'descending',
'destroy',
'detach',
'distinct',
'drop',
'dump',
'each',
'element',
'elements',
'else',
'encrypted',
'end',
'ends',
'execute',
'executable',
'exist',
'existence',
'exists',
'explain',
'extract',
Expand All @@ -185,13 +185,16 @@ const keywords: string[] = [
'for',
'foreach',
'from',
'fulltext',
'function',
'functions',
'grant',
'graph',
'graphs',
'headers',
'home',
'if',
'impersonate',
'in',
'index',
'indexes',
Expand All @@ -203,6 +206,7 @@ const keywords: string[] = [
'labels',
'limit',
'load',
'lookup',
'management',
'match',
'merge',
Expand All @@ -213,17 +217,23 @@ const keywords: string[] = [
'nodes',
'none',
'not',
'nowait',
'null',
'of',
'on',
'only',
'optional',
'options',
'or',
'order',
'output',
'password',
'passwords',
'periodic',
'plaintext',
'point',
'populated',
'privilege',
'privileges',
'procedure',
'procedures',
Expand All @@ -235,35 +245,49 @@ const keywords: string[] = [
'relationship',
'relationships',
'remove',
'rename',
'replace',
'require',
'required',
'return',
'revoke',
'role',
'roles',
'scan',
'sec',
'second',
'seconds',
'seek',
'set',
'shortestpath',
'show',
'single',
'skip',
'start',
'starts',
'status',
'stop',
'suspended',
'target',
'terminate',
'text',
'then',
'to',
'transaction',
'transactions',
'traverse',
'true',
'type',
'types',
'union',
'unique',
'unwind',
'use',
'user',
'users',
'using',
'verbose',
'wait',
'when',
'where',
'with',
Expand Down

0 comments on commit ca42eb5

Please sign in to comment.