-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
Language: GSQL | ||
Contributors: Dan Barkus <[email protected]> | ||
Description: GSQL language for TigerGraph | ||
Website: https://www.tigergraph.com/ | ||
*/ | ||
|
||
export default function(hljs) { | ||
return { | ||
name: "GSQL", | ||
keywords: | ||
{ | ||
keyword: 'accum and any api as asc avg bag batch between bool both break by case catch coalesce compress continue count create datetime datetime_add datetime_sub delete desc distributed do double edge else end escape exception false file filter float foreach for from graph group gsql_int_max gsql_int_min gsql_uint_max having if in insert int interpret intersect interval into is isempty jsonarray jsonobject lasthop leading like limit list load_accum log map match max min minus not now null offset or order path per pinned post_accum post-accum primary_id print query raise range replace reset_collection_accum return returns run sample select select_vertex set src static string sum syntax target tagstgt then to to_csv to_datetime trailing trim true try tuple typedef uint union update values vertex when where while with', | ||
literal: 'true false null' | ||
}, | ||
contains: [ | ||
// hljs.QUOTE_STRING_MODE, | ||
// hljs.APOS_STRING_MODE, | ||
hljs.C_NUMBER_MODE, | ||
hljs.C_BLOCK_COMMENT_MODE, | ||
hljs.HASH_COMMENT_MODE, | ||
{ | ||
className: 'clause', | ||
keywords: { | ||
built_in: 'accum having limit order postAccum sample where' | ||
} | ||
}, | ||
{ | ||
className: 'accum', | ||
keywords: { | ||
built_in: 'andaccum arrayaccum avgaccum bagaccum bitwiseandaccum bitwiseoraccum groupbyaccum heapaccum listaccum MapAccum maxaccum minaccum oraccum setaccum sumaccum' | ||
} | ||
}, | ||
{ | ||
className: 'relation', | ||
begin: /(-\s?)(\(.*\:\w?\))(\s?-)/, | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters