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
4 changes: 4 additions & 0 deletions lua/jupytext/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ local read_from_ipynb = function(ipynb_filename)
ft = metadata.language
end

if ft == "c++" then
ft = "cpp"
end

-- In order to make :undo a no-op immediately after the buffer is read, we
-- need to do this dance with 'undolevels'. Actually discarding the undo
-- history requires performing a change after setting 'undolevels' to -1 and,
Expand Down
1 change: 1 addition & 0 deletions lua/jupytext/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local language_extensions = {
R = "r",
bash = "sh",
}
language_extensions["c++"] = "cpp"

local language_names = {
python3 = "python",
Expand Down