Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Separate date across multiple lines for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston Liu authored and Winston Liu committed Mar 25, 2019
1 parent 000efcd commit 4dd840c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion grammars/toml.cson
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,18 @@
'name': 'constant.language.boolean.false.toml'
}
{
'match': '\\d{4}-\\d{2}-\\d{2}(?:(T)\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:(Z)|([+-])\\d{2}:\\d{2})?)?'
'match': '''(?x)
\\d{4}-\\d{2}-\\d{2} # YYYY-MM-DD
(?:
(T)
\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)? # HH:MM:SS.precision
(?:
(Z)
|
([+-])\\d{2}:\\d{2} # +/- HH:MM
)?
)?
'''
'name': 'constant.numeric.date.toml'
'captures':
'1': 'name': 'keyword.other.time.toml'
Expand Down

0 comments on commit 4dd840c

Please sign in to comment.