-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Space-separated attributes are allowed now
Corrected the README Added some more attribute tests Added a mixin test thats quite interesting (.classes and #ids are just normal attributes, even in mixins!) Fixed: #33
- Loading branch information
Torben Köhn
committed
Jan 5, 2016
1 parent
2f14f42
commit 8f0428b
Showing
23 changed files
with
102 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Compiler.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -91,7 +91,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Compiler.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Compiler.Exception.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -35,7 +35,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Compiler.Exception.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Filter.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -53,7 +53,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Filter.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Lexer.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -60,7 +60,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Lexer.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -1684,14 +1684,18 @@ protected function scanAttributes() | |
$this->read('ctype_space'); | ||
} | ||
|
||
$token['value'] = $this->readBracketContents([',']); | ||
$token['value'] = $this->readBracketContents([',', ' ', "\r", "\n", "\t"]); | ||
} | ||
|
||
if ($this->peek() === ',') { | ||
if ($this->peek() === ',' || ctype_space($this->peek())) { | ||
|
||
$this->consume(); | ||
$this->read('ctype_space'); | ||
$continue = true; | ||
|
||
if ($this->peek() !== ')') | ||
$continue = true; | ||
else | ||
$continue = false; | ||
} else { | ||
|
||
$continue = false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Lexer.Exception.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -34,7 +34,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Lexer.Exception.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Parser.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -57,7 +57,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Parser.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Parser.Exception.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -34,7 +34,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Parser.Exception.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Parser.Node.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -40,7 +40,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Parser.Node.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Renderer.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -51,7 +51,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Renderer.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Renderer.Adapter.File.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -58,7 +58,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Renderer.Adapter.File.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Renderer.Adapter.Stream.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -70,7 +70,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Renderer.Adapter.Stream.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Renderer.Adapter.Stream.Wrapper.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -40,7 +40,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Renderer.Adapter.Stream.Wrapper.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/Renderer.AdapterBase.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
@@ -40,7 +40,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/classes/Tale.Jade.Renderer.AdapterBase.html | ||
* @since File available since Release 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
meta(name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0") | ||
meta(http-equiv="X-UA-Compatible" content="chrome=1") | ||
|
||
link(rel="shortcut icon" href="/favicon.ico") | ||
link(rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600") | ||
|
||
link(rel="stylesheet" href="/style.css") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
meta(name='viewport' content='some viewport content') | ||
|
||
//- Mixed test | ||
a(href='google.de' target='_blank', title='Some link title') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
mixin button(label) | ||
button.btn(id=$id, class=$class)= $label | ||
|
||
|
||
|
||
+button.btn-default#someId('My Button Label') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* @author Talesoft <[email protected]> | ||
* @copyright Copyright (c) 2015 Talesoft (http://talesoft.io) | ||
* @license http://licenses.talesoft.io/2015/MIT.txt MIT License | ||
* @version 1.3.0 | ||
* @version 1.3.1 | ||
* @link http://jade.talesoft.io/docs/files/functions.html | ||
* @since File available since Tag 1.0.1 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
'./.git' | ||
]; | ||
|
||
$newVersion = '1.3.0'; | ||
$newVersion = '1.3.1'; | ||
|
||
|
||
if (!$newVersion) { | ||
|