diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 7ac178d2..117b38f0 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1844,6 +1844,13 @@ Rust: extensions: - .rs +SAS: + type: programming + color: "#1E90FF" + lexer: Text only + extensions: + - .sas + SCSS: type: markup group: CSS diff --git a/lib/linguist/samples.json b/lib/linguist/samples.json index 106ae552..0105d5d5 100644 --- a/lib/linguist/samples.json +++ b/lib/linguist/samples.json @@ -486,6 +486,9 @@ "Rust": [ ".rs" ], + "SAS": [ + ".sas" + ], "Sass": [ ".sass", ".scss" @@ -703,8 +706,8 @@ ".gemrc" ] }, - "tokens_total": 609432, - "languages_total": 740, + "tokens_total": 609525, + "languages_total": 742, "tokens": { "ABAP": { "*/**": 1, @@ -57432,6 +57435,53 @@ "running_threads2": 2, "port2.recv": 1 }, + "SAS": { + "libname": 1, + "source": 1, + "data": 6, + "work.working_copy": 5, + ";": 22, + "set": 3, + "source.original_file.sas7bdat": 1, + "run": 6, + "if": 2, + "Purge": 1, + "then": 2, + "delete": 1, + "ImportantVariable": 1, + ".": 1, + "MissingFlag": 1, + "proc": 2, + "surveyselect": 1, + "work.data": 1, + "out": 2, + "work.boot": 2, + "method": 1, + "urs": 1, + "reps": 1, + "seed": 2, + "sampsize": 1, + "outhits": 1, + "samplingunit": 1, + "Site": 1, + "PROC": 1, + "MI": 1, + "work.bootmi": 2, + "nimpute": 1, + "round": 1, + "By": 2, + "Replicate": 2, + "VAR": 1, + "Variable1": 2, + "Variable2": 2, + "logistic": 1, + "descending": 1, + "_Imputation_": 1, + "model": 1, + "Outcome": 1, + "/": 1, + "risklimits": 1 + }, "Sass": { "blue": 7, "#3bbfce": 2, @@ -65799,6 +65849,7 @@ "RobotFramework": 483, "Ruby": 3862, "Rust": 3566, + "SAS": 93, "Sass": 56, "Scala": 750, "Scaml": 4, @@ -65980,6 +66031,7 @@ "RobotFramework": 3, "Ruby": 17, "Rust": 1, + "SAS": 2, "Sass": 2, "Scala": 4, "Scaml": 1, @@ -66021,5 +66073,5 @@ "YAML": 2, "Zephir": 2 }, - "md5": "f4510eb529137f1b68e1dfc1b11b05d4" + "md5": "6c7340160a54d81861421a839c22ab03" } \ No newline at end of file diff --git a/samples/SAS/data.sas b/samples/SAS/data.sas new file mode 100644 index 00000000..e4e9bb07 --- /dev/null +++ b/samples/SAS/data.sas @@ -0,0 +1,17 @@ +/* Example DATA step code for linguist */ + +libname source 'C:\path\to\file' + +data work.working_copy; + set source.original_file.sas7bdat; +run; + +data work.working_copy; + set work.working_copy; + if Purge = 1 then delete; +run; + +data work.working_copy; + set work.working_copy; + if ImportantVariable = . then MissingFlag = 1; +run; \ No newline at end of file diff --git a/samples/SAS/proc.sas b/samples/SAS/proc.sas new file mode 100644 index 00000000..80cc1676 --- /dev/null +++ b/samples/SAS/proc.sas @@ -0,0 +1,15 @@ +/* PROC examples for Linguist */ + +proc surveyselect data=work.data out=work.boot method=urs reps=20000 seed=2156 sampsize=28 outhits; + samplingunit Site; +run; + +PROC MI data=work.boot out=work.bootmi nimpute=30 seed=5686 round = 1; + By Replicate; + VAR Variable1 Variable2; +run; + +proc logistic data=work.bootmi descending; + By Replicate _Imputation_; + model Outcome = Variable1 Variable2 / risklimits; +run; \ No newline at end of file