1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-24 17:45:38 +01:00

Merge pull request #334 from Fedict/GH-333-sparql

GH-333 initial sparql support
This commit is contained in:
Anthony Scopatz 2020-10-07 15:17:30 -05:00 committed by GitHub
commit b0be31cd84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

49
sparql.nanorc Normal file
View File

@ -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+:"