More compact example colour definition

Thu, 14 May 2020 17:45:50 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 14 May 2020 17:45:50 -0500
changeset 20
2f22cc1afaad
parent 16
238c7ce8fd49
child 21
1dc4f331d3d5
child 24
7c7d9c0a314d

More compact example colour definition

README.md file | annotate | diff | comparison | revisions
--- a/README.md	Wed May 13 16:16:39 2020 -0500
+++ b/README.md	Thu May 14 17:45:50 2020 -0500
@@ -28,35 +28,19 @@
 "editor.tokenColorCustomizations": {
     "textMateRules": [
         {
-            "scope": "entity.name.todo.latex",
-            "settings": {
-                "foreground": "#d17000",
-                "fontStyle": "italic",
-            }
-        },
-        {
-            "scope": "support.function.todo.latex",
+            "scope": [
+                "entity.name.todo.latex",
+                "support.function.todo.latex",
+                "entity.name.footnote.latex",
+                "support.function.footnote.latex"
+            ],
             "settings": {
                 "foreground": "#d17000",
-                "fontStyle": "italic",
-            }
-        },
-        {
-            "scope": "entity.name.footnote.latex",
-            "settings": {
-                "foreground": "#e28000",
-                "fontStyle": "italic",
-            }
-        },
-        {
-            "scope": "support.function.footnote.latex",
-            "settings": {
-                "foreground": "#e28000",
-                "fontStyle": "italic",
+                "fontStyle": "italic"
             }
         }
-    ],
-},
+    ]
+}
 ```
 
 Initial-prefixed `\XYtodo` custom todonotes commands are also supported.

mercurial