help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] [review] JSON language implementation


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] [review] JSON language implementation
Date: Sat, 28 Mar 2015 11:50:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 08/04/2013 18:32, muji wrote:
> Hello,
> 
> Thanks for `source-highlight`, it is fast and easy to customize.
> 
> I am working on a tool that required highlighting of JSON documents
> printed to a terminal so I wrote a JSON language implementation[1] and
> style file[2].
> 
> It appears to function correctly but I would appreciate it if you could
> review and if it is deemed good enough merge into the next release?
> 
> It handles escaped strings correctly, ie:
> 
> {
> "string": "my \"quoted\" value"
> }
> 
> I wanted to be able to differentiate elements at a granular level so
> have introduced some JSON specific style names:
> 
> * keyquote - Quotation marks for keys
> * valquote - Quotation marks for string values
> * colon - The colon delimiter
> * key - The string between key quotes
> 
> The number handling is taken from number.lang and can be replaced with
> an include of number.lang if you wish to merge this language definition.
> 
> [1] https://github.com/freeformsystems/rlx/blob/master/highlight/json.lang
> [2] https://github.com/freeformsystems/rlx/blob/master/highlight/json.style
> 
> Cheers,
> 
> -- 
> mischa (aka muji).

sorry for the long delay

I'd take those files and add them to source-highlight, OK?

thanks again
        Lorenzo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]