Skip to content

Commit

Permalink
cpp scope should extend c
Browse files Browse the repository at this point in the history
fix #631
  • Loading branch information
lukas-reineke committed Sep 15, 2023
1 parent c8d024d commit 2071829
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lua/ibl/scope_languages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,6 @@ local M = {
map = true,
array = true,
},
cpp = {
class_specifier = true,
template_declaration = true,
body = true,
template_function = true,
template_method = true,
function_declarator = true,
lambda_expression = true,
catch_clause = true,
requires_expression = true,
},
cue = {
source_file = true,
field = true,
Expand Down Expand Up @@ -663,6 +652,17 @@ local M = {
},
}

M.cpp = vim.tbl_extend("keep", M.c, {
class_specifier = true,
template_declaration = true,
body = true,
template_function = true,
template_method = true,
function_declarator = true,
lambda_expression = true,
catch_clause = true,
requires_expression = true,
})
M.arduion = M.cpp
M.cuda = M.cpp
M.astro = M.html
Expand Down

0 comments on commit 2071829

Please sign in to comment.