-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
" Vim indent file | ||
" Language: LALRPOP Grammar File | ||
" Author: Roland Fredenhagen <dev@modprog.de> | ||
" Date: December 11, 2022 | ||
" File Types: lalrpop | ||
" Version: 1 | ||
" Notes: Largely taken from rust.vim's configuration | ||
|
||
" Only load this indent file when no other was loaded. | ||
if exists("b:did_indent") | ||
finish | ||
endif | ||
let b:did_indent = 1 | ||
|
||
setlocal cindent | ||
setlocal cinoptions=L0,(s,Ws,J1,j1,m1,n-4 | ||
setlocal cinkeys=0{,0},!^F,o,O,0[,0],0(,0) | ||
|
||
" Some preliminary settings | ||
setlocal nolisp " Make sure lisp indenting doesn't supersede us | ||
|
||
let b:undo_indent = "setlocal cindent< cinoptions< cinkeys< lisp<" |