Skip to content

Commit

Permalink
fixed weird syntax highlighter backslash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
curlpipe committed Jul 21, 2024
1 parent 42d188f commit f601cb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .todo.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
- [ ] File Type Improvements - 0.4.1
- [ ] Fix nushell syntax issues
- [ ] Fix markdown syntax issues (try opening readme)
- [ ] Better file type handling
- [ ] Transfer built-in commands to lua
- [X] Add latex syntax highlighting
- [X] Fix nushell syntax issues
- [X] Write documentation

- [ ] Plugins - 0.4.2
- [ ] Custom syntax highlighting rules
Expand Down
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ pub fn key_to_string(modifiers: KMod, key: KCode) -> String {
result += "shift_";
}
result += &match key {
KCode::Char('\\') => "\\\\".to_string(),
KCode::Backspace => "backspace".to_string(),
KCode::Enter => "enter".to_string(),
KCode::Left => "left".to_string(),
Expand Down

0 comments on commit f601cb1

Please sign in to comment.