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 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.
The screenshot used the default One Dark theme.
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
quit; to close data step and procedure sections.
The following snippets are supported:
Atom > Preferences... then search for SAS Language in Install tab.
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.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.