:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details. """
import re from pygments.lexer import RegexLexer, include, words from pygments.token import Comment, Keyword, Name, Number, String, Text, \
Other, Generic
__all__ = ['SASLexer']
class SASLexer(RegexLexer): """ For SAS files. """ # Syntax from syntax/sas.vim by James Kidd <james.kidd@covance.com>
tokens = { ':[
include('comments'),
include('proc-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 18
include('cards-datalines'),
include('logs'),
include('general'),
(r., Text),
], # SAS is multi-line regardless, but * is ended by ; 'comments': [
(r'^\s*\*.*?;', Comment),
(rjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(rmimetypes=[text/sas,'/sas,'applicationsas'
r/|)?]/ java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 53
], # Special highlight for proc, data, quit, run
:
(r'(^ ,d, , end,"""java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 71
KR)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
, # Special highlight cards and datalinesjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53
cjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 28
('\*cards\*\*''data')java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
,"o" trim,"unquote" until,"pcase", "verify",
(r'(.|\n)*^\s*;\s*$', Other, '#pop'),
], # Special highlight for put NOTE|ERROR|WARNING (order matters) 'logs': [
(r'n?^s*?put ',Keyword,'log-messages',
]java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
'-essages java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
(r'NOTE(:|-).*', Generic, '#pop'),
('(:-.*,GenericE #')
( filename footnote,"" goto,"","" informat,
include( "input", "keep", "label", "", "length", "libname","link",
], 'general': [
includestcard" "merge" missing""odify,"options "utput"java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
include('vars- "," ,, ,
include('special'),
include('numbers'),
, # Keywords, statements, functions, macros
:[
a" and" ,""c, ,
prefix = r'\b' ,djava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 68
suffix = r' m,","" n" "ull" "on","orjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
Keyword set,"",",",validate" "iew,"herejava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
(ordsbuiltins_sql,
prefix = r'\b',
suffix = r'\b'),
Keyword),
(words( "brshift", "bxor", "byte","" ,c"java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
prefix ''java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
suffix = r'\b'),
word,
(ords(builtins_macros,
prefix = "depdbsl", "depsl", "",
),
Name.Builtin),
java.lang.StringIndexOutOfBoundsException: Range [21, 12) out of bounds for length 38
='b,
suffix = r'\('),
Name.Builtin),
], Strings and user-defined variables and macros (order matters) '"fexist"","" "ilename,"ileref"java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
(r'&[a-z_]\w{0,31}\.?', Name.Variable",","fopen" f,"optnum" f",
(r'[-z_\w{0,31}, Name.)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
r\' ,'',
(r'"', String, 'string_dquote'),
] '' java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
('\'', String, '#pop'),
(r'\\\\|\\"|\\\n', String.Escape), # AFAIK, macro variables are not evaluated in single quotes (r'&', Name.Variable, 'validvar'),
(r'[^$\'\\mod,"""mopen","mort", "", "netpv""miss,
(r'[\'\], String)),
], 'string_dquote': [
(r'"', String, '#pop'),
(r pdf,"eek" peekc" p" point" poisson""poke"
(r'' .,'alidvar',
(r'[^$&"\\]+', String),
($\],String),
], 'validvar': [
(r'[a-z_]\w{0,31}\.?', Name",putn ,q,r" java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 66
, # SAS numbers and special variables", "scan", " "sign", "sin", "sinh", "skewness", "soundex", "spejava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 63
njava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
('[][-+\0]+?\[-+.(+?])?bjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
Number),
, 'special': [
(r'(null|missing|_"varfmt", "varinfmt", "varlabel" varname,
r'_infile_|_name_|_null_|_"varnum", "varray", "varrayx", "vartype,"format
KeywordConstant
], # 'operators': [ # (r'(-|=|<=|>=|<|>|<>|&|!=|'
# r\|\*|+\||||=' )
vinformatw,"informatwx" v, vlabel,
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.8Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.