summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove newlines before objects in arrays"Jeremy Faivre2019-09-171-1/+2
| | | | | | This reverts commit 3cbcddc35b3b0392db5b2b2962849177a7a3b254. This commit was breaking most tests and should not have been merged
* Build with latest coffeescript, fix a few errorsJeremy Faivre2019-09-173-3/+15
|
* Update Dumper.coffeeTrevor2018-04-071-0/+4
|
* Remove newlines before objects in arraysWes Cossick2017-10-231-2/+1
|
* Remove Yaml.register(). Fix #83jeremyfa2017-06-241-14/+0
|
* Fix unreachable code. Closes #87 and #86jeremyfa2017-04-201-1/+0
|
* Merge pull request #78 from jonathanperret/fix-tzoffsetJérémy Faivre2017-03-311-1/+1
|\ | | | | Fix reversed application of timezone offset (#77)
| * Fix reversed application of timezone offset (#77)Jonathan Perret2017-01-291-1/+1
| | | | | | | | | | | | | | Fixes #77. Also makes rounding unnecessary in tests by fixing fractional seconds in test data.
* | Merge pull request #68 from thomscode/developJérémy Faivre2017-02-121-7/+15
|\ \ | | | | | | Fix issue 59
| * | Simplify source by adding Utils.isEmptyObject methodThom Williams2016-08-191-2/+10
| | |
| * | Solve issue 59: Stringify empty objects inlineThom Williams2016-08-191-6/+6
| |/
* | Merge pull request #79 from ar-shao/issue#60Jérémy Faivre2017-02-121-6/+5
|\ \ | | | | | | Fix issue #60
| * | Fix issue #60Airan Shao2017-02-111-6/+5
| |/ | | | | | | | | Parser.getNextEmbedBlock() should not return if current line is comment or blank.
* | Merge pull request #80 from ar-shao/multilineJérémy Faivre2017-02-123-22/+33
|\ \ | | | | | | Multiline compact sequence/mapping/string
| * | Multiline compact sequence/mapping/stringAiran Shao2017-02-113-22/+33
| |/ | | | | | | | | | | | | Fix following issues: 1) Multiline compact sequence/mapping/quoted string can begin without indentation. 2) Unquoted string can extend to multiline with proper indentation.
* | Merge pull request #81 from ar-shao/regflagJérémy Faivre2017-02-121-4/+4
|\ \ | | | | | | Fix: unable to parse end of the document marker (...)
| * | Fix: unable to parse end of the document marker (...)Airan Shao2017-02-111-4/+4
| |/ | | | | | | | | | | | | | | | | In Regexp, '^' and '$' by default match the beginning and end of the whole string rather than a single line. In Parser.parse(), each line is a separate string, so this is fine. But in Parser.cleanup(), the whole document is a single string. To allow '^' and '$' matching the beginning and end of line in this string, we need modifier 'm' to make RegExp work in multiline mode.
* | replaceAll always replace str with ''Airan Shao2017-02-111-1/+1
|/ | | | Should replace matching string with parameter "replacement", not ''.
* Ignore empty lines for smallest indentdtaniwaki2016-02-271-0/+1
|
* Add more string escaping tests; Fix #54jeremyfa2016-02-161-5/+4
|
* Fix #46 and add the related unit testjeremyfa2015-09-151-1/+1
|
* Merge pull request #26 from phpdave11/developJérémy Faivre2015-07-222-20/+20
|\ | | | | Replaced reserved javascript keyword "char" with "_char"
| * Replaced reserved javascript keyword "char" with "_char". Fixes Adobe ↵phpdave112014-10-272-20/+20
| | | | | | | | ExtendScript compile error.
* | added global flag for unescapeSingleQuotedString methodIFours2015-07-211-1/+1
| |
* | Fix #12 and add related unit testjeremyfa2015-05-221-0/+12
| |
* | Fix #30jeremyfa2015-05-221-1/+4
| |
* | Fix #29 and add unit tests to ensure it won't break againjeremyfa2015-05-221-10/+12
| |
* | Fix #33jeremyfa2015-04-291-2/+2
|/
* Escape all single quotesLiam Mitchell2014-09-301-1/+1
|
* Add additional tests. Fix asynchronous loading.Jérémy Faivre2014-09-142-5/+7
|
* Add most of the test cases and fix bugs making some test fail.Jeremy Faivre2014-08-255-35/+54
|
* Improve performances (more than 2 times faster), rewrite in coffee-script, ↵Jeremy Faivre2014-07-2219-2405/+1963
| | | | | | | | fix various bugs. This is the first pass of rewrite of the YAML library (in progress). The focus was on improving code readability, make it well-documented and fix most of the current issues. It didn't focus on the performances yet, even though they are better than the previous version. The next big step (not included in this first pass in progress) will focus on removing most RegExps because they are time consuming and they make the code working on a "line by line" basis. The code will move to a "character by character" parsing, allowing us to deeply improve performances, and add new features from the 1.2 Yaml spec.
* dumping empty string to ""Chethiya Abeysinghe2014-04-051-1/+1
|
* Cleanup, build and increment version.v0.1.4Jeremy Faivre2012-12-161-3/+3
|
* Detect Unindented Sequence of Mapsziad-sawalha2012-11-211-1/+6
| | | | | | | | | | | | I could not get Jasmine to fail the test and I do not know the right names for YAML types, but I did the best I could. The demo failed on this YAML: test: - something: 1 test: 2 This patch should fix that.
* Fixed parse error when putting commend after 'some quoted string'.v0.1.3Jeremy Faivre2012-09-191-1/+2
|
* fixed global leak isQuotedJohann Philipp Strathausen (on eeepc)2012-08-251-1/+1
|
* Fixed YAML not screaming when adding extra characters after inline value.v0.1.2Jeremy Faivre2012-08-143-6/+6
|
* Added command line tools yaml2json and json2yaml.Jeremy Faivre2012-08-059-9/+360
|
* Cleaned-up files and added compatibility with node.jsJeremy Faivre2012-08-047-0/+2048