Commit Graph

2 Commits

Author SHA1 Message Date
Alexander Lopatin 47dfa2af2c
Fix #98: Implement Rust highlighting support (#99)
Initial Rust highlighting support

* Basic support for the language
* Line comments (`//`)
* Block comments (`/* */`), but no recursion
* Chars
* Strings (`"..."`)
* Raw strings (`r"..."`, `r#"..."#`, up to 5 levels)
* Added some Rust syntax test files

Co-authored-by: Romain Failliot <romain.failliot@foolstep.com>
2022-10-24 16:16:24 -04:00
Romain Failliot fd3c2bfb92 Start modularizing the code
* The entry point (`__main__`) is in diffuxe.in
* The main (almost all) code is now in main.py
* Some util functions and variables are in utils.py
* Following the same folder structure as with a new project with GNOME
  Builder:
    - `src/` is now just for the code itself
    - `data/` is for the other files (metainfo, desktop, config, ...)
    - `po/` for the translations
    - The Desktop file is renamed with the app ID
    - The `meson.build` files are closer to what GNOME Builder generates
    - More tests for the package (appstream and desktop)
    - Almost all the files in `etc/`, `usr/` are properly handled by
      meson now
    - Just use `gettext.install()` to initialize gettext
    - Remove call to `Gtk.Window.set_default_icon_name()`
* Website now points to https://mightycreak.github.io/diffuse/
2021-11-16 17:48:34 -05:00