Atom Packages Directory

a package directory for a text editor of the 21st Century


Install with:
    apm install language-sas

SAS language support in Atom Build Status

Adds syntax highlighting, auto indentation, and snippets to SAS and SAS macro files in Atom.

In the past a few years, I have been mainly using Vim to code my SAS programs. I recently decided to switch to Atom for its better integration with OS X. This SAS language package is my first effort to switch to the new editor. I wrote the Vim SAS syntax script and indentation script and I feel that Atom allows me to better implement what I did in Vim.

Contributions are greatly appreciated. Please fork this repository and open a pull request to add modifications.


Syntax highlighting

Syntax highlighting supports base SAS syntaxes up to SAS 9.3. It can automatically distinguish different statement keywords with respect to data step and procedure sections. This package also supports highlighting the specific SQL procedure keywords.

Syntax highlighting > The screenshot used the default One Dark theme.

Auto indentation

Just like syntax highlighting, it is completely rewritten. However, there are some limitations due to how Atom currently implements its indentation mechanism. I was not able to implement the exact indentation behavior as what I did in the Vim SAS indentation script. Right now, please make sure to use run; or quit; to close data step and procedure sections.


The following snippets are supported:


Go to Atom > Preferences... then search for SAS Language in Install tab.

To-Do List

Copyright ® 2015 Zhen-Huan Hu. This package is licensed under the MIT license.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries.

Keywords: language, sas, macro, syntax, snippet Suggest keywords
Fork me on GitHub