Missing .sublime-syntax for Yacc/Bison highlighting #3558
-
|
Hi everyone, I'm trying to set up syntax highlighting for Yacc/Bison files ( I realized that Does anyone here have a working Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
I packaged it has Nix Derivation like this: {
lib,
stdenv,
fetchFromGitea,
}:
stdenv.mkDerivation rec {
pname = "sublime-bison";
version = "2.1.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "ISSOtm";
repo = "sublime-Bison";
rev = version;
hash = "sha256-hOioRUeaSXaCjDoamIeZzeVdoxAJv/WN/1ojTY7N9OU=";
};
installPhase = ''
mkdir -p $out/Completions
cp Completions/*.sublime-completions $out/Completions
cp *.sublime-syntax* $out
'';
meta = {
description = "A Sublime Text syntax definition for Bison grammar files";
homepage = "https://codeberg.org/ISSOtm/sublime-Bison";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ malik ];
mainProgram = "sublime-bison";
platforms = lib.platforms.all;
};
}My Bat Nix-Home-Manager Configuration uses it like this: programs.bat = {
enable = true;
config = {
map-syntax = [
"*.tpp:C++"
# Bison (C)
"*.y:Bison"
"*.yacc:Bison"
"*.bison:Bison"
# Bison (C++)
"*.yy:Bison (C++)"
"*.ypp:Bison (C++)"
"*.yxx:Bison (C++)"
"*.y++:Bison (C++)"
];
};
syntaxes = {
dhall = {
src = pkgs.syntax-files.dhall.sublime;
file = "dhall.sublime-syntax";
};
bison = {
src = pkgs.syntax-files.bison.sublime;
file = "Bison.sublime-syntax";
};
bison-cpp = {
src = pkgs.syntax-files.bison.sublime;
file = "Bison++.sublime-syntax";
};
};
}; |
Beta Was this translation helpful? Give feedback.
Hi, maybe https://codeberg.org/ISSOtm/sublime-Bison