diff --git a/autotests/folding/modelines.py.fold b/autotests/folding/modelines.py.fold new file mode 100644 --- /dev/null +++ b/autotests/folding/modelines.py.fold @@ -0,0 +1,10 @@ +# Comment\ + +# kate: syntax Python ; scheme Normal; +# kate: font-size 14; background-color #FAFAFA ; + +# kate: remove-trailing-spaces *; +# kate: remove-trailing-spaces all; + +# kate: replace-tabs false; +# kate: byte-order-mark true ; diff --git a/autotests/folding/modelines.sh.fold b/autotests/folding/modelines.sh.fold new file mode 100644 --- /dev/null +++ b/autotests/folding/modelines.sh.fold @@ -0,0 +1,10 @@ +# Comment\ + +# kate: syntax Bash ; scheme Normal; +# kate: font-size 14; background-color #FAFAFA ; + +# kate: remove-trailing-spaces *; +# kate: remove-trailing-spaces all; + +# kate: replace-tabs false; +# kate: byte-order-mark true ; diff --git a/autotests/html/modelines.py.html b/autotests/html/modelines.py.html new file mode 100644 --- /dev/null +++ b/autotests/html/modelines.py.html @@ -0,0 +1,17 @@ + + + +modelines.py + +
+# Comment\
+
+# kate: syntax Python ; scheme Normal;
+# kate: font-size 14; background-color #FAFAFA ;
+
+# kate: remove-trailing-spaces *;
+# kate: remove-trailing-spaces all;
+
+# kate: replace-tabs false;
+# kate: byte-order-mark true ;
+
diff --git a/autotests/html/modelines.sh.html b/autotests/html/modelines.sh.html new file mode 100644 --- /dev/null +++ b/autotests/html/modelines.sh.html @@ -0,0 +1,17 @@ + + + +modelines.sh + +
+# Comment\
+
+# kate: syntax Bash ; scheme Normal;
+# kate: font-size 14; background-color #FAFAFA ;
+
+# kate: remove-trailing-spaces *;
+# kate: remove-trailing-spaces all;
+
+# kate: replace-tabs false;
+# kate: byte-order-mark true ;
+
diff --git a/autotests/input/modelines.py b/autotests/input/modelines.py new file mode 100644 --- /dev/null +++ b/autotests/input/modelines.py @@ -0,0 +1,10 @@ +# Comment\ + +# kate: syntax Python ; scheme Normal; +# kate: font-size 14; background-color #FAFAFA ; + +# kate: remove-trailing-spaces *; +# kate: remove-trailing-spaces all; + +# kate: replace-tabs false; +# kate: byte-order-mark true ; diff --git a/autotests/input/modelines.sh b/autotests/input/modelines.sh new file mode 100644 --- /dev/null +++ b/autotests/input/modelines.sh @@ -0,0 +1,10 @@ +# Comment\ + +# kate: syntax Bash ; scheme Normal; +# kate: font-size 14; background-color #FAFAFA ; + +# kate: remove-trailing-spaces *; +# kate: remove-trailing-spaces all; + +# kate: replace-tabs false; +# kate: byte-order-mark true ; diff --git a/autotests/reference/modelines.py.ref b/autotests/reference/modelines.py.ref new file mode 100644 --- /dev/null +++ b/autotests/reference/modelines.py.ref @@ -0,0 +1,10 @@ +# Comment\
+
+# kate: syntax Python ; scheme Normal;
+# kate: font-size 14; background-color #FAFAFA ;
+
+# kate: remove-trailing-spaces *;
+# kate: remove-trailing-spaces all;
+
+# kate: replace-tabs ;
+# kate: byte-order-mark ;
diff --git a/autotests/reference/modelines.sh.ref b/autotests/reference/modelines.sh.ref new file mode 100644 --- /dev/null +++ b/autotests/reference/modelines.sh.ref @@ -0,0 +1,10 @@ +# Comment\
+
+# kate: syntax Bash ; scheme Normal;
+# kate: font-size 14; background-color #FAFAFA ;
+
+# kate: remove-trailing-spaces *;
+# kate: remove-trailing-spaces all;
+
+# kate: replace-tabs ;
+# kate: byte-order-mark ;
diff --git a/data/syntax/modelines.xml b/data/syntax/modelines.xml --- a/data/syntax/modelines.xml +++ b/data/syntax/modelines.xml @@ -8,7 +8,7 @@ Copyright (c) 2012-2014 by Alex Turbov (i.zaufi@gmail.com) --> bookmark-sorting bom byte-order-marker + byte-order-mark dynamic-word-wrap folding-markers folding-preview @@ -130,7 +131,6 @@ - @@ -166,10 +166,13 @@ - + + + + @@ -187,7 +190,7 @@ - +