Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jlavallee/fab-vim
base: 46b313c110
...
head fork: jlavallee/fab-vim
compare: 2d199adc06
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 06, 2012
Jeff Lavallee fix example usage in README 50f61da
Jeff Lavallee fix definition of reals 5cbfd88
Jeff Lavallee treat "const" like "var" 2d199ad
Showing with 5 additions and 3 deletions.
  1. +2 −1  README.md
  2. +3 −2 syntax/fab.vim
View
3  README.md
@@ -2,6 +2,7 @@ Vim files for working with the fab language.
To use the syntax file, add something like the following to your .vimrc:
- au BufRead,BufNewFile *.fab so ~/.vim/syntax/fab.vim
+ so ~/.vim/syntax/fab.vim
+ au BufRead,BufNewFile *.fab set filetype=fab
View
5 syntax/fab.vim
@@ -10,7 +10,7 @@ endif
syn keyword fabKeyword by do exit for loop of read return to while write
syn keyword fabConditional else elseif if then
syn keyword fabFunction func
-syn keyword fabStorageClass const extends
+syn keyword fabStorageClass extends
syn keyword fabRecord record
syn keyword fabOperator div mod or and not
@@ -20,6 +20,7 @@ syn keyword fabType real integer boolean unit
" TODO: handle array type expressions
syn keyword fabVar var nextgroup=fabVarName skipwhite
+syn keyword fabVar const nextgroup=fabVarName skipwhite
syn match fabVarName "[a-zA-Z][a-zA-Z0-9]*" contained
" boolean literals
@@ -32,7 +33,7 @@ syn region fabString start="\"" end="\""
" number literals
syn match fabInteger "\<\d\+\>"
-syn match fabReal "\<\d\+\.\d\+\>"
+syn match fabReal "\<\d\+\.\d\*\>"
" map fab groups to standard groups
hi link fabFunction Function

No commit comments for this range

Something went wrong with that request. Please try again.