GithubHelp home page GithubHelp logo

language-sas's Introduction

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.

Features

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.

Snippets

The following snippets are supported:

  • if statement: if, elsif, else
  • do statement: do, while, until
  • select statement: select
  • Array: array
  • File input: infile
  • Hash declaration: declare
  • Procedure: proc
  • FREQ - tables statement: table
  • SQL - create table: create

Install

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

To-Do List

  • Snippets
  • SAS/STAT syntax highlighting
  • PROC IML specific syntax highlighting
  • Improve indentation mechanism?

Copyright & License

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.

language-sas's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.