mirror of https://github.com/helix-editor/helix
Compare commits
4 Commits
cb1ecc9128
...
bfd2c72715
Author | SHA1 | Date |
---|---|---|
|
bfd2c72715 | |
|
4c8600967c | |
|
313ef30f64 | |
|
9bb370c91e |
|
@ -36,7 +36,7 @@
|
|||
The default Helix build. Uses the latest stable Rust toolchain, and unstable
|
||||
nixpkgs.
|
||||
|
||||
The build inputs can be overriden with the following:
|
||||
The build inputs can be overridden with the following:
|
||||
|
||||
packages.${system}.default.override { rustPlatform = newPlatform; };
|
||||
|
||||
|
|
11
grammars.nix
11
grammars.nix
|
@ -1,22 +1,13 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
runCommandLocal,
|
||||
runCommand,
|
||||
yj,
|
||||
includeGrammarIf ? _: true,
|
||||
grammarOverlays ? [],
|
||||
...
|
||||
}: let
|
||||
# HACK: nix < 2.6 has a bug in the toml parser, so we convert to JSON
|
||||
# before parsing
|
||||
languages-json = runCommandLocal "languages-toml-to-json" {} ''
|
||||
${yj}/bin/yj -t < ${./languages.toml} > $out
|
||||
'';
|
||||
languagesConfig =
|
||||
if lib.versionAtLeast builtins.nixVersion "2.6.0"
|
||||
then builtins.fromTOML (builtins.readFile ./languages.toml)
|
||||
else builtins.fromJSON (builtins.readFile (builtins.toPath languages-json));
|
||||
builtins.fromTOML (builtins.readFile ./languages.toml);
|
||||
isGitGrammar = grammar:
|
||||
builtins.hasAttr "source" grammar
|
||||
&& builtins.hasAttr "git" grammar.source
|
||||
|
|
|
@ -626,7 +626,7 @@ args = { console = "internalConsole", attachCommands = [ "platform select remote
|
|||
|
||||
[[grammar]]
|
||||
name = "cpp"
|
||||
source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "670404d7c689be1c868a46f919ba2a3912f2b7ef" }
|
||||
source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "56455f4245baf4ea4e0881c5169de69d7edd5ae7" }
|
||||
|
||||
[[language]]
|
||||
name = "crystal"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
; Constants
|
||||
|
||||
(this) @variable.builtin
|
||||
(nullptr) @constant.builtin
|
||||
(null) @constant.builtin
|
||||
|
||||
; Types
|
||||
|
||||
|
|
|
@ -150,6 +150,9 @@
|
|||
(port_identifier
|
||||
(simple_identifier) @variable)
|
||||
|
||||
(variable_port_header ("var") @type.builtin)
|
||||
(data_declaration ("var") @type.builtin)
|
||||
(tf_port_item1 ("var") @type.builtin)
|
||||
[
|
||||
(net_type)
|
||||
(integer_vector_type)
|
||||
|
|
Loading…
Reference in New Issue