.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / declarationValueIndex.js
1 /* @flow */
2 "use strict";
3
4 /**
5  * Get the index of a declaration's value
6  */
7 module.exports = function(decl /*: Object*/) /*: number*/ {
8   const beforeColon = decl.toString().indexOf(":");
9   const afterColon =
10     decl.raw("between").length - decl.raw("between").indexOf(":");
11   return beforeColon + afterColon;
12 };