sponsor Vim development Vim logo Vim Book Ad

SAS Syntax : Syntax Script for SAS 9.1/9.2/9.3

 script karma  Rating 43/16, Downloaded by 1442    Comments, bugs, improvements  Vim wiki

created by
Zhenhuan Hu
 
script type
syntax
 
description
This syntax script was based on the script originally written by James Kidd years ago. The mechanism for matching SAS keywords has been completely rewritten. The new approach is supposed to be more sophisticated and content sensitive than the old one.

New improvements of the latest syntax script:

1. Keywords newly introduced in SAS 9.1/9.2/9.3 have been added, including ODS statements, hash object, Proc SGPLOT and Proc SGPANEL.
2. All keywords (according to SAS official documents) in base SAS (up to 9.3) have been supported.
3. Highlights for format tags, user defined macro functions, and macro comments have been supported.

I omitted syntax supports for SAS log and list files in this script. Syntax supports for these files should be kept in separate scripts.  

Please let me know if there is any bugs in the script.

PS: Don't forget to check out my SAS indent script here: http://vim.sourceforge.net/scripts/script.php?script_id=4034
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
sas.vim 1.2.4 2014-06-19 7.0 Zhenhuan Hu Improved macro comment syntax (macro comments after semicolon is now correctly colored.)
sas.vim 1.2.3 2013-07-25 7.0 Zhenhuan Hu Minor cosmetic modifications for hash objects
Minor bug fixes for statment syntax
sas.vim 1.2.2 2012-04-26 7.0 Zhenhuan Hu Fixed minor bugs.
sas.vim 1.2.1 2012-03-28 7.0 Zhenhuan Hu Added syntax for macro comment
sas.vim 1.2 2012-02-28 7.0 Zhenhuan Hu Completely rewrote approach for highlighting SAS statements
Updated new statements in Base SAS 9.3 and SAS/Stat
Fixed glitches in highlighting procedure names and internal variables.
Simplify the approach for highlighting SAS functions
Added highlighting for hash and hiter objects
sas.vim 1.1 2011-05-11 7.0 Zhenhuan Hu Added more keywords in SAS 9.1.
sas.vim 1.0 2011-03-25 7.0 Zhenhuan Hu Initial upload
ip used for rating: 54.205.253.132

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo