Commits

Toby Inkster committed ea12416

is...of support for N3.

  • Participants
  • Parent commits 1b711d7

Comments (0)

Files changed (2)

File SciTE.properties

 style.script_n3.2=$(font.text),fore:#000000,bold
 # Comment
 style.script_n3.3=$(font.text),fore:#669933,italics
+# is ... of
+style.script_n3.4=$(font.text),fore:#000099,italics
 # SPARQL
 style.script_n3.8=$(font.text),fore:#000000,bold,italics
 # Invalid

File n3.lexer.lua

 	S_PUNC = 1
 	S_KEYWORD = 2
 	S_COMMENT = 3
+	S_ISOF = 4
 	S_SPARQL = 8
 	S_URI = 10
 	S_CURIE = 20
 					styler:ChangeState(S_VARIABLE)
 				elseif identifier:sub(1,1) == "$" then
 					styler:ChangeState(S_VARIABLE)
-				elseif identifier == "a" then
+				elseif identifier:lower() == "a" then
 					styler:ChangeState(S_RDFTYPE)
+				elseif identifier:lower() == "is" then
+					styler:ChangeState(S_ISOF)
+				elseif identifier:lower() == "of" then
+					styler:ChangeState(S_ISOF)
 				elseif identifier:lower() == "true" or identifier:lower() == "false" then
 					styler:ChangeState(S_BOOL)
 				elseif sparqlWords:find(" "..identifier:upper().." ") then