class Rouge::Lexers::XPath
Public Class Methods
axes()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 66 def self.axes @axes ||= Regexp.union %w( child descendant attribute self descendant-or-self following-sibling following namespace parent ancestor preceding-sibling preceding ancestor-or-self ) end
commentStart()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 45 def self.commentStart @commentStart ||= %r/\(:/ end
constructorTypes()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 91 def self.constructorTypes @constructorTypes ||= Regexp.union %w(function array map empty-sequence) end
decimalLiteral()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 17 def self.decimalLiteral @decimalLiteral ||= %r/\.#{digits}|#{digits}\.[0-9]*/ end
digits()
click to toggle source
Terminal literals: www.w3.org/TR/xpath-31/#terminal-symbols
# File lib/rouge/lexers/xpath.rb, line 13 def self.digits @digits ||= %r/[0-9]+/ end
doubleLiteral()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 21 def self.doubleLiteral @doubleLiteral ||= %r/(\.#{digits})|#{digits}(\.[0-9]*)?[eE][+-]?#{digits}/ end
eqName()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 41 def self.eqName @eqName ||= %r/(?:#{uriQName}|#{qName})/ end
keywords()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 78 def self.keywords @keywords ||= Regexp.union %w(let for some every if then else return in satisfies) end
kindTest()
click to toggle source
Terminal symbols: www.w3.org/TR/xpath-30/#id-terminal-delimitation
# File lib/rouge/lexers/xpath.rb, line 55 def self.kindTest @kindTest ||= Regexp.union %w( element attribute schema-element schema-attribute comment text node document-node namespace-node ) end
kindTestForPI()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 62 def self.kindTestForPI @kindTestForPI ||= Regexp.union %w(processing-instruction) end
ncName()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 29 def self.ncName @ncName ||= %r/[a-z_][a-z_\-.0-9]*/i end
openParen()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 49 def self.openParen @openParen ||= %r/\((?!:)/ end
operators()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 74 def self.operators @operators ||= Regexp.union %w(, => = := : >= >> > <= << < - * != + // / || |) end
qName()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 33 def self.qName @qName ||= %r/(?:#{ncName})(?::#{ncName})?/ end
stringLiteral()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 25 def self.stringLiteral @stringLiteral ||= %r/("(("")|[^"])*")|('(('')|[^'])*')/ end
uriQName()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 37 def self.uriQName @uriQName ||= %r/Q\{[^{}]*\}#{ncName}/ end
word_operators()
click to toggle source
# File lib/rouge/lexers/xpath.rb, line 82 def self.word_operators @word_operators ||= Regexp.union %w( and or eq ge gt le lt ne is div mod idiv intersect except union to ) end