Skip to content

Commit

Permalink
Merge pull request scopatz#334 from Fedict/scopatzGH-333-sparql
Browse files Browse the repository at this point in the history
scopatzGH-333 initial sparql support
  • Loading branch information
scopatz committed Oct 7, 2020
2 parents b34c716 + 5a29d49 commit b0be31c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions sparql.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## SPARQL 1.1 and SPARQL 1.1 UPDATE
#
syntax "SPARQL" ".*\.(rq|sparql)$"

icolor brightcyan "\<(ADD|AS|ASK)\>"
icolor brightcyan "\<(BIND|BY)\>"
icolor brightcyan "\<(CLEAR|CONSTRUCT|CREATE)\>"
icolor brightcyan "\<(DATA|DEFAULT|DELETE|DESCRIBE|DISTINCT|DROP)\>"
icolor brightcyan "\<(FILTER|FROM)\>"
icolor brightcyan "\<(GRAPH|GROUP)\>"
icolor brightcyan "\<(HAVING)\>"
icolor brightcyan "\<(INSERT)\>"
icolor brightcyan "\<(LIMIT|LOAD)\>"
icolor brightcyan "\<(MINUS|MOVE)\>"
icolor brightcyan "\<(NAMED|NOT)\>"
icolor brightcyan "\<(OFFSET|OPTIONAL|ORDER)\>"
icolor brightcyan "\<(PREFIX)\>"
icolor brightcyan "\<(REDUCED)\>"
icolor brightcyan "\<(SELECT|SERVICE|SILENT)\>"
icolor brightcyan "\<(TO)\>"
icolor brightcyan "\<(UPDATE|USING)\>"
icolor brightcyan "\<(VALUES)\>"
icolor brightcyan "\<(WHERE|WITH)\>"

# functions
icolor brightmagenta "\<(ABS|AVG)\>"
icolor brightmagenta "\<(BNODE|BOUND)\>"
icolor brightmagenta "\<(CEIL|COALESCE|CONCAT|CONTAINS|COUNT)\>"
icolor brightmagenta "\<(DATATYPE|DAY)\>"
icolor brightmagenta "\<(ENCODE_FOR_URI|EXISTS)\>"
icolor brightmagenta "\<(FLOOR)\>"
icolor brightmagenta "\<(GROUP_CONCAT)\>"
icolor brightmagenta "\<(HOURS)\>"
icolor brightmagenta "\<(IF|IN|IRI|ISBLANK|ISIRI|ISLITERAL|ISNUMERIC)\>"
icolor brightmagenta "\<(LANG|LANGMATCHES|LCASE)\>"
icolor brightmagenta "\<(MAX|MD5|MIN|MINUTES|MONTH)\>"
icolor brightmagenta "\<(NOW)\>"
icolor brightmagenta "\<(RAND|REGEX|REPLACE|ROUND)\>"
icolor brightmagenta "\<(SAMETERM|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRLANG|STRLEN|STRSTARTS|STRUUID|SUBSTR|SUM)\>"
icolor brightmagenta "\<(TIMEZONE|TZ)\>"
icolor brightmagenta "\<(UCASE|UUID)\>"
icolor brightmagenta "\<(YEAR)\>"

# variables, IRI
#
icolor cyan "\?\w+"
icolor brightgreen "<.+:[^ >]+>"
icolor green " \w+:"

0 comments on commit b0be31c

Please sign in to comment.