CabalHighlightRules = function () {
    this.$rules = {
        "start": [
            {
                token: "comment",
                regex: "^\\s*--.*$"
            }, {
                token: ["keyword"],
                regex: /^(\s*\w.*?)(:(?:\s+|$))/
            }, {
                token: "constant.numeric", // float
                regex: /[\d_]+(?:(?:[\.\d_]*)?)/
            }, {
                token: "constant.language.boolean",
                regex: "(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"
            }, {
                token: "markup.heading",
                regex: /^(\w.*)$/
            }
        ]
    };
}
Haskell Cabal files highlighter (https://www.haskell.org/cabal/users-guide/developing-packages.html)