I check a file and it says syntax is ok, but then I try to actually convert the file and it fails with syntax errors.
~/code/rentlogic/marketing-site $ haml -c src/index.haml
Syntax OK
~/code/rentlogic/marketing-site $ haml src/index.haml compiled/index.html
Syntax error on line 131: src/index.haml:7: syntax error, unexpected tIDENTIFIER, expecting ')'
...{}, nil, rel: 'stylesheet' href: 'https://maxcdn.bootstrapcd...
... ^
src/index.haml:7: syntax error, unexpected ')', expecting tSTRING_DEND
...p/3.3.7/css/bootstrap.min.css')}>\n <link#{
... ^
src/index.haml:11: syntax error, unexpected tSTRING_DEND, expecting '}'
_hamlout.attributes({}, nil, rel:'stylesheet' href:...
^
src/index.haml:11: Can't assign to nil
_hamlout.attributes({}, nil, rel:'stylesheet' href: 'http...
^
src/index.haml:11: syntax error, unexpected tIDENTIFIER, expecting tSTRING_DEND
...({}, nil, rel:'stylesheet' href: 'https://maxcdn.bootstrapcd...
... ^
src/index.haml:11: syntax error, unexpected ')', expecting tSTRING_DEND
...7/css/bootstrap-theme.min.css')}>\n <script#{
... ^
src/index.haml:15: syntax error, unexpected '}', expecting tSTRING_DEND
...ap/3.3.7/js/bootstrap.min.js')}></script>\n </head>\n <bod...
... ^
src/index.haml:15: unknown regexp options - had
src/index.haml:15: syntax error, unexpected $undefined
...min.js')}></script>\n </head>\n <body>\n <h1>Why should...
... ^
src/index.haml:15: syntax error, unexpected $undefined
...</script>\n </head>\n <body>\n <h1>Why should I use HAM...
... ^
src/index.haml:15: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...>\n <body>\n <h1>Why should I use HAML?</h1>\n <ol>\n...
... ^
src/index.haml:15: unknown regexp option - l
src/index.haml:15: syntax error, unexpected $undefined
... much easier on the eyes.</li>\n <li>You'll type less.<...
... ^
src/index.haml:15: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
... the eyes.</li>\n <li>You'll type less.</li>\n <li...
... ^
src/index.haml:15: unterminated string meets end of file
Use --trace for backtrace.
~/code/rentlogic/marketing-site $
I check a file and it says syntax is ok, but then I try to actually convert the file and it fails with syntax errors.