Giter Site home page Giter Site logo

vim-goyacc's Introduction

Vim Filetype Support for goyacc

vim-goyacc is a filetype support for goyacc.

It provides standard YACC syntax highlight and Go syntax highlight inside semantic action {...}. Default YACC syntax highlight attempts to highlight the semantic action as C or C++, though.

And this also provides Go's indentation using runtime/indent/go.vim. It provides more pleasant auto indentation as editing Go source.

screen shot

Files whose names end with .go.y are detected as a file for goyacc. If you want to detect files with your own rule, please write your autocmd in your vimrc.

e.g.

" All files end with .y are detected as goyacc parser definition file.
autocmd BufNewFile,BufReadPost *.y setlocal filetype=goyacc

Or write mode line at the bottom of your file as below.

/* vim: set ft=goyacc: */

How to Install

If you use Vim's default package management, please refer :help load-plugins. Clone this repository with git to proper location in your filesystem.

If you use your favorite Vim plugin manager like vim-plug, please follow the instruction in its documentation.

License

This plugin was derived from Vim's standard YACC filetype support. Hence this plugin is provided with the same license as Vim (Vim license). Please see :help license in Vim for more detail.

vim-goyacc's People

Contributors

rhysd avatar silverrainz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

silverrainz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.