Skip to content

ltbinsbe/uuag-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

uuag-vim

Syntax highlighting for UUAG (Utrecht University Attribute Grammar) in VIM.

UUAG Manual: http://foswiki.cs.uu.nl/foswiki/HUT/AttributeGrammarManual

  • copy uuag.vim to syntax/ folder of vim distribution (e.g. ~/.vim/syntax/)
  • create the file ftdetect/uuag.vim with content: au BufRead,BufNewFile *.ag set filetype=uuag

Known problems:

  • No indentation sensitivity to recognise Haskell regions on the right-hand side of a attribute definition.

Rules for Haskell regions:

  • Everything between { and }
  • Everything following a = and \n\n (2 line breaks)

luuag-vim

Syntax highlighting for literate UUAG files

  • copy luuag.vim to syntax/ folder of vim distribution (e.g. ~/.vim/syntax/)
  • create the file ftdect/uuag.vim with content: au BufRead,BufNewFile *.lag set filetype=luuag

(Disclaimer) The luuag.vim file is a modified copy of version 1.04 of the the lhaskell.vim file for syntax highlighting of literate Haskell files written by Arthur van Leeuwen

About

Syntax highlighting for UUAG in VIM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published