From 4b2e1dba2bce01f6b5d7a123b9fe128ea30f5f22 Mon Sep 17 00:00:00 2001 From: Jackson Ray Hamilton Date: Sun, 21 Dec 2014 01:30:59 -0800 Subject: [PATCH] Documentation. --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4a380be23..4a1d237ce 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ Extension is relatively straightforward. Write a "scopifier" for the language of your choice, add an entry to `context-coloring-scopifier-plist`, and the plugin should handle the rest. -A "scopifier" is a CLI program that reads a buffer's contents from stdin, and -then writes a JSON array of integers to stdout. Every three numbers in the array +A "scopifier" is a CLI program that reads a buffer's contents from stdin and +writes a JSON array of numbers to stdout. Every three numbers in the array represent a range of color. For instance, if I fed the following string of JavaScript code to a scopifier, @@ -59,10 +59,7 @@ var a = function () {}; then the scopifier would produce the following array: ```js -[ - 1, 24, 0, - 9, 23, 1 -] +[1,24,0,9,23,1] ``` Where, for every three numbers, the first number is a 1-indexed start [point][], -- 2.39.2