Skip to content

Latest commit

 

History

History
27 lines (13 loc) · 730 Bytes

README.md

File metadata and controls

27 lines (13 loc) · 730 Bytes

SnuPL/1

SnuPL/1 is a programming language used in the Compiler class in spring 2016.

You can check my compiler for SnuPL/1 at https://github.com/Hyunjin95/snu-compilers

Make Vim detect SnuPL/1 files

Create a new file 'snupl.vim' in '~/.vim/ftdetect'. You might first need to create a '.vim' or a 'ftdetect' directory:

mkdir -p ~/.vim/ftdetect

Put the following line into the file.

au BufNewFile,BufRead *.mod set filetype=snupl

Create a new *.mod file and run this command.

:set filetype?

Vim will say snupl, and Vim will now recognize .mod files as SnuPL/1 files.

Enable Syntax Highlighting

Put the 'snupl.vim' file in this repository into the '~/.vim/syntax' folder.