Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorFrederick
    • CommentTimeMar 23rd 2007 edited
     permalink

    I made some small cosmetic changes to the CSS grammar, this is the result:

    (Starting on line 121)
    { match: /(-|\+)?[0-9]*\.[0-9]+/ name: 'constant.numeric.floating-point.css' } { match: /(-|\+)?[0-9]+/ name: 'constant.numeric.integer.css' } { match: /(?<=[\d])(px|pt|cm|mm|in|em|ex|pc)\b|%/ name: 'keyword.other.unit.css' } { captures: { 1: { name: 'identifier.other.rgb-value.css' } } match: /(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b/ name: 'constant.other.rgb-value.css' }

    Avoids highlighting whitespace between numerics, separates integers and floating-points for theming and catches the # in hex color values, also for theming. So now it can look like this depending on what theme you use.

    I know I made changes a while ago in some other grammars too, I will contribute them later today I think…

    • CommentAuthori
    • CommentTimeMar 23rd 2007
     permalink

    Integrated :)

    •  
      CommentAuthorFrederick
    • CommentTimeMar 25th 2007 edited
     permalink

    Line 101:
    end: /\s*(?=:|})/

    •  
      CommentAuthorFrederick
    • CommentTimeMar 25th 2007
     permalink

    Added a short <? .. ?> snippet for PHP (tabtrigger “ph”):
    http://filer.brnm.se/info.itInfo
    http://filer.brnm.se/php%5Fphp%5Fshort.itSnippet

    • CommentAuthorRafaĆ«l
    • CommentTimeMar 27th 2007
     permalink

    Hello everyone,
    I’ve added some snippets for the php language (Frederick i’ve include your snippet).
    you can grab it Here

    ps: Great thanks for this damn nice editor :)
    ps2: Sorry for my poor english ^^