Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/buffer.jai
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,7 @@ get_tokenize_function :: (lang: Buffer.Lang) -> Tokenize_Function {
case .Yang; return tokenize_yang;
case .Zig; return tokenize_zig;
case .Uxntal; return tokenize_uxntal;
case .Vhdl; return tokenize_vhdl;
case .Markdown; return tokenize_markdown;
case .Batch; return tokenize_batch;
case .Swift; return tokenize_swift;
Expand Down Expand Up @@ -1940,6 +1941,7 @@ Buffer :: struct {
Yang;
Zig;
Uxntal;
Vhdl;
Markdown;
Batch;
Swift;
Expand Down
8 changes: 7 additions & 1 deletion src/editors.jai
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,10 @@ get_lang_from_path :: (full_path: string) -> Buffer.Lang {

case "ini"; lang = .Ini;

case "vhd"; lang = .Vhdl;
case "vhdl"; lang = .Vhdl;


case "diff"; lang = .Diff;
case "patch"; lang = .Diff;

Expand Down Expand Up @@ -4510,7 +4514,8 @@ toggle_comment :: (editor: *Editor, buffer: *Buffer, is_fallback := false) {
comment = "//";

case .Lua; #through;
case .Luau;
case .Luau; #through;
case .Vhdl;
comment = "--";

case .Powershell; #through;
Expand Down Expand Up @@ -4769,6 +4774,7 @@ toggle_block_comment :: (editor: *Editor, buffer: *Buffer, is_fallback := false)
case .RenPy; #through; // Yeah, there is a trick but meh (https://lemmasoft.renai.us/forums/viewtopic.php?p=299664#p299664 in case someone would like to implement it)
case .Shell; #through; // You could with herestrings but it runs into having to use specific identifiers like #string in Jai so let's not
case .Zig; #through;
case .Vhdl; #through; // Standard VHDL has only -- comments; block comments are non-standard
case .Ini; #through;
case .Focus_Config; #through;
case .Toml; #through;
Expand Down
2 changes: 1 addition & 1 deletion src/files.jai
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ known_extensions_table :: #run -> Table(string, Known_Extension_File_Type) {
text_file_extensions :: string.[
"jai", "c", "cpp", "h", "hpp", "cc", "cs", "d", "txt", "md", "ini", "csv", "go", "log",
"sql", "py", "m", "html", "xml", "plist", "js", "jsx", "ts", "tsx", "json", "yml",
"yaml", "toml", "zig", "odin", "focus-config", "focus-theme",
"yaml", "toml", "zig", "odin", "focus-config", "focus-theme", "vhd", "vhdl", "vdhl",
];
for text_file_extensions table_add(*table, it, .text);

Expand Down
Loading