mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-17 23:05:42 +00:00
adding JSON5 support
This commit is contained in:
29
samples/JSON5/example.json5
Normal file
29
samples/JSON5/example.json5
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* The following is a contrived example, but it illustrates most of the features:
|
||||
*/
|
||||
|
||||
{
|
||||
foo: 'bar',
|
||||
while: true,
|
||||
|
||||
this: 'is a \
|
||||
multi-line string',
|
||||
|
||||
// this is an inline comment
|
||||
here: 'is another', // inline comment
|
||||
|
||||
/* this is a block comment
|
||||
that continues on another line */
|
||||
|
||||
hex: 0xDEADbeef,
|
||||
half: .5,
|
||||
delta: +10,
|
||||
to: Infinity, // and beyond!
|
||||
|
||||
finally: 'a trailing comma',
|
||||
oh: [
|
||||
"we shouldn't forget",
|
||||
'arrays can have',
|
||||
'trailing commas too',
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user