class Rouge::Lexers::XPath
Public Class Methods
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
Source
# File lib/rouge/lexers/xpath.rb, line 45 def self.commentStart @commentStart ||= %r/\(:/ end
Source
# File lib/rouge/lexers/xpath.rb, line 91 def self.constructorTypes @constructorTypes ||= Regexp.union %w(function array map empty-sequence) end
Source
# File lib/rouge/lexers/xpath.rb, line 17 def self.decimalLiteral @decimalLiteral ||= %r/\.#{digits}|#{digits}\.[0-9]*/ end
Source
# File lib/rouge/lexers/xpath.rb, line 13 def self.digits @digits ||= %r/[0-9]+/ end
Terminal literals: www.w3.org/TR/xpath-31/#terminal-symbols
Source
# File lib/rouge/lexers/xpath.rb, line 21 def self.doubleLiteral @doubleLiteral ||= %r/(\.#{digits})|#{digits}(\.[0-9]*)?[eE][+-]?#{digits}/ end
Source
# File lib/rouge/lexers/xpath.rb, line 41 def self.eqName @eqName ||= %r/(?:#{uriQName}|#{qName})/ end
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
Source
# 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
Terminal symbols: www.w3.org/TR/xpath-30/#id-terminal-delimitation
Source
# File lib/rouge/lexers/xpath.rb, line 62 def self.kindTestForPI @kindTestForPI ||= Regexp.union %w(processing-instruction) end
Source
# File lib/rouge/lexers/xpath.rb, line 29 def self.ncName @ncName ||= %r/[a-z_][a-z_\-.0-9]*/i end
Source
# File lib/rouge/lexers/xpath.rb, line 49 def self.openParen @openParen ||= %r/\((?!:)/ end
Source
# File lib/rouge/lexers/xpath.rb, line 74 def self.operators @operators ||= Regexp.union %w(, => = := : >= >> > <= << < - * != + // / || |) end
Source
# File lib/rouge/lexers/xpath.rb, line 33 def self.qName @qName ||= %r/(?:#{ncName})(?::#{ncName})?/ end
Source
# File lib/rouge/lexers/xpath.rb, line 25 def self.stringLiteral @stringLiteral ||= %r/("(("")|[^"])*")|('(('')|[^'])*')/ end
Source
# File lib/rouge/lexers/xpath.rb, line 37 def self.uriQName @uriQName ||= %r/Q\{[^{}]*\}#{ncName}/ end
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