summaryrefslogtreecommitdiff
path: root/src/scanner.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow question marks in plain scalars in flow collections (#105)Tina Müller (tinita)2020-06-011-1/+1
| | | | | | | | | | | | | | | See http://yaml.org/spec/1.1/#id907281 The question mark isn't mentioned as something special here, only ,[]{} This commit will allow [foo?bar] [foo ? bar] The PR does only change the behaviour when the question mark is in the middle or at the end of the string, not at the beginning, e.g. [?foo] is handled by a different part of the code.
* Flow indicators can not be part of local or shorthand tags (#179)Tina Müller (tinita)2020-06-011-14/+22
| | | | Spec: https://yaml.org/spec/1.2/spec.html#ns-tag-char Test: https://github.com/yaml/yaml-test-suite/blob/master/test/WZ62.tml
* Fix missing token in example (#169)Ashutosh Chauhan2020-04-101-0/+1
|
* Fix spellingHonkingGoose2019-07-251-1/+1
|
* Fixed typo.SHIBATA Hiroshi2019-06-061-1/+1
|
* fix clang -Wlogical-op warningsReini Urban2018-07-181-1/+1
| | | | Commit amended by @perlpunk after suggestion from @tlsa
* Allow colons in plain scalars inside flow collections0.2.2-pre1Tina Müller2018-06-301-3/+14
| | | | | | | | | | | | | | This is a followup to #28 See http://yaml.org/spec/1.1/#nb-plain-char(c) and the following productions. This commit will allow `[http://example]`, but still fail for: - `[:foo]` - `[foo:]` See https://gist.github.com/perlpunk/de2c631a7b0e9002de351a680eadb573 for all the relevant cases where this change applies.
* Fix typo errorwhiteUnicorn2018-06-301-1/+1
| | | nessesary to necessary
* Fix token name typos in commentsViktor Szakats2018-06-301-2/+2
|
* Fixed most compiler warnings -Wall -WextraReini Urban2018-01-081-5/+3
| | | | | | | | | | | repro: CFLAGS="-Wall -Wextra -Wunused-parameter -Wc++-compat" ./configure && make which we use for perl, and libyaml is now included in cperl. Tested with gcc-5 and clang-3.7 There are still a tons of format warnings (%d on 64bit) in example-deconstructor.c which I skipped.
* Forbid escaped singlequote in doublequotesTina Müller2017-12-021-4/+0
| | | | See also issue #68
* Fix unitialized value crash found by OSS FuzzIan Cordasco2017-05-131-0/+5
| | | | | | | Google's OSS Fuzz project found input for libyaml that was capable of triggering an uninitialized value crash. Patch provided by Alex Gaynor
* Removed trailing-whitespacesSHIBATA Hiroshi2016-11-231-6/+5
|
* Picked typofix from Ruby's Psych parserSHIBATA Hiroshi2016-11-231-19/+19
| | | | | See also https://github.com/ruby/psych/commit/66fb7fb77533d0606748940288858794752d95cb
* spec-1.2 rule [53]Ingy döt Net2016-10-061-0/+4
| | | | Support "\/" for JSON compatability.
* Removed invalid simple key assertion (thank to Jonathan Gray).Kirill Simonov2014-11-281-7/+0
|
* Fixed heap overflow in yaml_parser_scan_uri_escapes (Thanks Ivan Fratric of ↵0.1.6Kirill Simonov2014-03-261-0/+3
| | | | the Google Security Team).
* Forgot to set the error state.Kirill Simonov2014-02-031-2/+6
|
* Guard against overflows in indent and flow_level.Kirill Simonov2014-02-021-7/+13
|
* Fixed invalid size_t->int cast (Thank to Florian Weimer).Kirill Simonov2014-01-121-1/+1
|
* Fixed pointer arithmetic overflow when calculating the position of a ↵Kirill Simonov2010-10-111-1/+1
| | | | potential simple key (#156, thank to ppelletier(at)oblong(dot)com).
* Fixed non-ANSI initializations (fixes #115).Kirill Simonov2009-02-231-3/+5
|
* Fixed grammar in error messages (from YAML::XS::LibYAML).Kirill Simonov2008-07-311-6/+6
|
* Eliminate some warnings and add more doxygen definitions.Kirill Simonov2007-01-081-1/+3
|
* Add win32 fixes and project files for VC6.Kirill Simonov2007-01-071-12/+13
|
* Force a new line at the end of the input stream even if there are no a new ↵Kirill Simonov2006-12-111-0/+7
| | | | line character. This fixes a nasty bug when libyaml hangs on documents like `[[[[`. Thanks ciaranm for reporting the bug.
* Implement everything except tag and scalar writers.Kirill Simonov2006-07-281-344/+171
|
* Implement Emitter state machine.Kirill Simonov2006-07-261-2/+4
|
* Add Emitter definitions and implement the Writer.Kirill Simonov2006-07-231-46/+0
|
* Fix some leaks, segfaults and warnings.Kirill Simonov2006-07-211-1/+1
|
* Refactor internal and external API.Kirill Simonov2006-07-211-1001/+653
|
* Complete the Parser (it requires refactoring though) and fix some bugs.Kirill Simonov2006-07-071-0/+2
|
* Move yaml/yaml.h to yaml.h and merge version.c to api.c.Kirill Simonov2006-07-031-1/+1
|
* Fix numerous bugs in the Scanner.Kirill Simonov2006-06-191-25/+67
|
* The scanner is completed (not tested though).Kirill Simonov2006-06-181-22/+575
|
* Implement the block scalar scanner.Kirill Simonov2006-06-161-20/+412
|
* Implement scanners for directives, anchors, and tags.Kirill Simonov2006-06-111-61/+1026
|
* Scanner: implement everything except token scanners.Kirill Simonov2006-06-081-32/+1125
|
* Implementing Scanner: macros and high-level functions.Kirill Simonov2006-06-071-14/+423
|
* Add scanner definitions.Kirill Simonov2006-06-061-0/+667
Add a basic description of all tokens produced by the scanner.