Files
oak-gpui/crates
Carroll Wainwright fb6c987e3e python: Improve function syntax highlighting (#20487)
Release Notes:

- Differentiate between function and method calls and definitions.
`function.definition` matches the highlight for e.g. rust,
`function.call` is new.
- Likewise differentiate between class calls and class definitions.
- Better highlighting of function decorators (the `@` symbol is
punctuation, and now the decorator itself has a `function.decorator`
tag)
- Make `cls` a special variable (like `self`)
- Add `ellipsis` as a built-in constant

Note that most themes do not currently make use of the
`function.definition` tags, and none make use of the
`type.class.definition` tag. Hopefully more themes will pick this up.

*Before:*
<img width="248" alt="image"
src="https://github.com/user-attachments/assets/550ccd3d-594c-413a-b543-ef9caf39eee1">


*After:*
<img width="245" alt="image"
src="https://github.com/user-attachments/assets/47aa43b1-006b-4f9f-9029-510880f390ea">
2024-11-19 00:05:39 +01:00
..
2024-10-27 19:44:21 -07:00
2024-11-11 18:39:05 +01:00
2024-11-18 22:56:34 +01:00
2024-11-11 18:39:05 +01:00
2024-08-13 23:06:07 -07:00
2024-07-15 17:04:15 -06:00
2024-11-18 22:56:34 +01:00
2024-10-02 13:27:16 +02:00
2024-11-13 10:42:08 -07:00
2024-11-15 12:25:18 -05:00
2024-11-14 08:25:48 -05:00
2024-11-13 11:47:52 -05:00
2024-10-30 11:26:54 -06:00