Small changes
This commit is contained in:
parent
5a588288bb
commit
cfd2ad4fb6
4 changed files with 40 additions and 2 deletions
1
nvim/ftdetect/paret.vim
Normal file
1
nvim/ftdetect/paret.vim
Normal file
|
@ -0,0 +1 @@
|
||||||
|
au BufRead,BufNewFile *.paret set filetype=paret
|
|
@ -20,7 +20,7 @@ set undodir=~/.vim/undo
|
||||||
set list lcs=tab:\|-
|
set list lcs=tab:\|-
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set noexpandtab
|
set expandtab
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set smarttab
|
set smarttab
|
||||||
|
|
||||||
|
|
37
nvim/syntax/paret.vim
Normal file
37
nvim/syntax/paret.vim
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
" Vim syntax file
|
||||||
|
" Language: Paret
|
||||||
|
" Maintainer: Kalle Struik
|
||||||
|
" Latest Revision: 17 March 2022
|
||||||
|
|
||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Binary builtins
|
||||||
|
syn keyword paretBinaryBuiltins '+' '*' '-' and or num= num< num> cons
|
||||||
|
" Unary builtins
|
||||||
|
syn keyword paretBinaryBuiltins not head tail is-nil is-list
|
||||||
|
" Variable size builtins
|
||||||
|
syn keyword paretVariableBuiltins list
|
||||||
|
" Misc builtins
|
||||||
|
syn keyword paretMiscBuiltins if lambda let letrec
|
||||||
|
|
||||||
|
|
||||||
|
" Number constants
|
||||||
|
syn match paretNumber '\d\+'
|
||||||
|
" Boolean constants
|
||||||
|
syn keyword paretBoolean true false
|
||||||
|
" Nil constants
|
||||||
|
syn keyword paretNil nil
|
||||||
|
|
||||||
|
|
||||||
|
let b:current_syntax = "paret"
|
||||||
|
|
||||||
|
hi def link paretBinaryBuiltins Statement
|
||||||
|
hi def link paretUnaryBuiltins Statement
|
||||||
|
hi def link paretVariableBuiltins Statement
|
||||||
|
hi def link paretMiscBuiltins Statement
|
||||||
|
|
||||||
|
hi def link paretNumber Constant
|
||||||
|
hi def link paretBoolean Constant
|
||||||
|
hi def link paretNil Constant
|
2
setup.sh
2
setup.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/env bash
|
#!/usr/bin/env bash
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
DOTS_DIR=$(pwd)
|
DOTS_DIR=$(pwd)
|
||||||
|
|
Loading…
Add table
Reference in a new issue