Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed Yaml comments parsing on Windows.

  • Loading branch information...
commit c94ba1328aa42624eae8c7ae9348080b7a958188 1 parent 2ba3054
authored
1  test/assets/assets.yml
... ...
@@ -1,3 +1,4 @@
  1
+# Comment (just to test that parsing them works)
1 2
 stylesheets:
2 3
   desktop/public1: 'asset3,asset2,*,folder1/subfolder1/*'
3 4
   desktop/public2:
2  vendor/yaml.js
@@ -36,7 +36,7 @@ function context(str) {
36 36
  */
37 37
 
38 38
 var tokens = [
39  
-  ['comment', /^#[^\n]*/],
  39
+  ['comment', isWindows ? /^#[^\r\n]*/ : /^#[^\n]*/],
40 40
   ['indent', isWindows ? /^\r\n( *)/ : /^\n( *)/],
41 41
   ['space', /^ +/],
42 42
   ['empty', isWindows ? /^\r\n$/ : /^\n$/],

0 notes on commit c94ba13

Please sign in to comment.
Something went wrong with that request. Please try again.