(eql #\/ (peek-character lexer 1)) (eql #\/ (peek-character lexer 2)))
(incf (lexer-cursor lexer) 3)
(loop while (and (peek-character lexer) (not (whitespace-p (peek-character lexer)))
- (not (find (peek-character lexer) "<>\"{}|^`\\[](")))
+ (not (find (peek-character lexer) "<>\"{}|^`\\[]()")))
do (take-character lexer))
(loop while (and (> (lexer-cursor lexer) start)
(find (char text (1- (lexer-cursor lexer))) ";.)"))
(scan-name lexer)
(make-token :kind :qname :value (subseq text start (lexer-cursor lexer)) :position start))
(t (make-token :kind :identifier :value head :position start)))))
- ((find c ".;-=^:") (make-token :kind :punctuation :value c :position start))
- ((find c "%?[$@~()")
+ ((find c ".;-=^:(),") (make-token :kind :punctuation :value c :position start))
+ ((find c "%?[$@~")
(problem 'ctm-unsupported :unsupported-construct start
- (format nil "Construct starting with ~S is outside Slice 1." c)))
+ (format nil "Construct starting with ~S is outside the implemented subset." c)))
(t (problem 'ctm-rejection :unexpected-character start (format nil "Unexpected character ~S." c))))))