Attached are the SAS syntax and indent scripts that I have been maintaining on vim.org for quite a few years. The syntax script is much more accurate and supports more features in the SAS language. They are also patched and updated to the latest version of SAS (as of Mar 2017).
I also attached an example SAS file here in case you want to see the differences.
No, I haven't. I am not very familiar with the process but if it is a completely different script, do I still need to contact the original maintainer?
That makes sense. I will try to contact the original maintainer.
(Somehow, when I try to attach the file directly, I keep getting the error from Google groups...)
The indent file is not working on my windows machine.and the syntax file doesn't highlight anything after a datelines statement.
I tried the files https://github.com/EricGebhart/SAS-Vim/blob/master/indent/sas.vim here they work but have limitations.
Are your SAS files recognized correctly by Vim? What is the "filetype" value?
Does this happen to all SAS files or just some specific files? Could you send me a sample file with indent/syntax issue to see if I can reproduce the issue?
As for the dataline syntax, do you have a semicolon at the start of a newline to mark the end of a dataline block? A dataline block in SAS needs to be written as:
dataline
xx xx xx
xx xx xx
;
The semicolon must be the first character in a new line to form a null statement; otherwise SAS will throw an error.
I have added the before and after issuing the command gg=G in normal mode.As you can see there is no indenting at all.
I have also added a file with no syntax highlighting.It works in sas 9.4
On Saturday, August 26, 2017 at 12:58:12 AM UTC-4, Zhen-Huan Hu wrote:
Perfect Thanks,syntax works
Any update on the indenting issue
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/CflWb5jChQ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to vim_dev+unsubscribe@googlegroups.com.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/CflWb5jChQ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+unsubscribe@googlegroups.com.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/CflWb5jChQ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+unsubscribe@googlegroups.com.