GithubHelp home page GithubHelp logo

vim-syntax-extra's Introduction

vim-syntax-extra's People

Contributors

alhadis avatar blmayer avatar dlion avatar genivia-inc avatar justinmk avatar robert-van-engelen avatar thekidofarcrania avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

vim-syntax-extra's Issues

vim-syntax-extra seems very unhappy with my braces

Admittedly, I have a bit of an odd coding style, but even the more mundane things cause vim-syntax-extra to highlight my braces as if they were syntactically invalid:

const char * example [] = {
    [HL] = "Hello,",
    [WL] = "World!"
};

Noting that both HL and WL are validly defined in an enum earlier in the code, vim-syntax-extra still highlights both of these braces. There is no error output as far as I can see, but these braces are perfectly fine syntactically.

Problem with `{` inside a bison action

The following code is not highlighted properly:

i_bexpr : iexpr i_boolop iexpr
        { $$ = new Bool<int,int>(Bool<int,int>::Args{$1,$3},
                                 Bool<int,int>::T_ops{$2}); }
        | i_bexpr i_boolop iexpr
        { std::cout << $1->args[0]->repr() << std::endl;
          $1->args.insert($1->args.end(), $3);
          $1->ops.insert($1->ops.end(), $2);
          $$ = $1; }

It looks like that:
bison-vim

Thanks for these syntax files!

Rules with a '.' in the name are not colored

Hello

With a rule like

name.opt:
NAME
| OTHER
;

the coloring is not applied, because of the . in the name. As it is syntactically valid and not ambiguous (as far as I'm aware), it should be possible to correctly interpret it.

Braces color

Braces get marked as errors if I enable parenthesis recognition in the "delimiters"

cUserFunctionPointer does not highlight

However if I run this command to match it again

syn match cUserFunctionPointer "(\s*\*\s*\h\w*\s*)\(\s\|\n\)*(" contains=cDelimiter,cOperator

It starts working perfectly. But now, if I do

set ft=c

The highlighting disappears.

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.