Commit graph

220 commits

Author SHA1 Message Date
gregorni
1012867391 Formatter: Distinguish child types and lists 2023-08-23 20:56:26 +00:00
gregorni
c094e863f7 formatter.py: put more code into commit_current_line 2023-08-23 00:02:22 +02:00
gregorni
aee36ca48b Revert "formatter.py: bundle adding to end string into function"
This reverts commit d53e027610.
2023-08-23 00:01:02 +02:00
gregorni
c9ba06b4a4 formatter.py: Rename variable for clarity 2023-08-22 16:52:24 +02:00
gregorni
d53e027610 formatter.py: bundle adding to end string into function 2023-08-22 16:32:09 +02:00
gregorni
f539aeb93d Formatter: Improve inserting whitespace 2023-08-21 23:44:58 +02:00
gregorni
23d1f77b25 Formatter: Remove whitespace-line remover
Removing lines only containing whitespace is superflous, such lines never get added to `tokenized_str`
2023-08-21 23:25:18 +02:00
gregorni
babcc42ea2 Formatter: Fix newlines missing sometimes 2023-08-21 23:14:11 +02:00
gregorni
317de07d41 Formatter: Try different approach 2023-08-21 21:04:25 +00:00
gregorni
b0d6d7a31b Merge branch 'main' of https://gitlab.gnome.org/jwestman/blueprint-compiler into formatter 2023-08-15 18:46:59 +02:00
gregorni
441a7a38bd Formatter: Insert newline after comments 2023-08-15 17:48:56 +02:00
Ivan Kalinin
582502c1b4 completions: fix property value completion 2023-08-13 10:42:03 +03:00
gregorni
8c4eebba08 Formatter: Distinguish child types and lists 2023-08-08 18:05:41 +02:00
gregorni
01f67c3f47 Formatter.py: run black 2023-08-08 17:04:29 +02:00
gregorni
af956e9aab Formatter: Improve indents at closing tokens 2023-08-08 17:02:08 +02:00
gregorni
47b7ee8986 Formatter: combine two if conditions into one line 2023-08-08 16:50:19 +02:00
gregorni
97f07b3ca8 Formatter: optimize 1 operation 2023-08-08 16:47:43 +02:00
gregorni
b692a35398 Formatter: Fix newlines after child types 2023-07-27 21:22:35 +02:00
gregorni
72edce9670 Formatter: handle inline whitespace 2023-07-27 16:55:43 +02:00
gregorni
5be85d858e Formatter: Insert newline before lines with opening token 2023-07-27 16:31:20 +02:00
gregorni
cf8615eb35 formatter.py: Remove enumerate() function in for condition 2023-07-27 16:13:05 +02:00
gregorni
1addc89f83 formatter.py: Make constants uppercase
Also mark a `print` used for testing for removal
2023-07-27 15:57:03 +02:00
gregorni
9a77b51dce formatter.py: fix newlines being indented a space too much 2023-07-27 15:48:39 +02:00
gregorni
1933529f09 formatter.py: Remove some newlines again
Due to black formatter
2023-07-26 20:03:51 +02:00
gregorni
1e33f208dd formatter.py: Improve whitespace for clarity 2023-07-26 19:59:44 +02:00
gregorni
1f999c3405 Formatter: Improve indent handling 2023-07-26 19:25:23 +02:00
gregorni
fcba91def2 Update branch
Merge branch 'main' of
https://gitlab.gnome.org/jwestman/blueprint-compiler into formatter
2023-07-26 18:53:48 +02:00
James Westman
bfa2f56e1f Sort imports 2023-07-25 20:07:37 -05:00
James Westman
35ee058192 lsp: Add code action to add missing imports 2023-07-25 20:02:03 -05:00
James Westman
3bcc9f4cbd Use the new Range class in more places 2023-07-25 20:01:41 -05:00
James Westman
56274d7c1f completions: Fix signal completion 2023-07-25 18:54:58 -05:00
James Westman
a9cb423b3b lsp: Add missing semantic highlight 2023-07-25 18:52:43 -05:00
James Westman
62f74178f7 lsp: Implement "go to definition" 2023-07-25 18:40:05 -05:00
James Westman
e087aeb44f lsp: Add document outline 2023-07-25 17:59:52 -05:00
gregorni
5cc411e955 Merge branch 'main' of https://gitlab.gnome.org/jwestman/blueprint-compiler into formatter 2023-07-24 16:40:45 +02:00
James Westman
950b141d26 lsp: Mark deprecation warnings
Some editors use different styling (e.g. strikethrough) for deprecation
warnings.
2023-07-23 18:17:48 -05:00
James Westman
94db929f74 Emit deprecation warnings 2023-07-23 18:09:29 -05:00
James Westman
883a136103 Fix parsing decimals
A number literal is a float if it contains ".", not if it is divisible
by 1. For example, 1.0 should be considered a float literal.
2023-07-20 19:25:25 -05:00
James Westman
0a4b5d07a1 Remove PropertyBinding rule, just use Binding 2023-07-20 18:46:45 -05:00
gregorni
40ea102067 Adapted new formatting file in main.py 2023-07-20 18:43:36 +02:00
gregorni
81734ed3a1 Moved formatting logic to separate file
Also updated branch
2023-07-20 18:43:01 +02:00
gregorni
54da7fa6b9 Merge branch 'main' of https://gitlab.gnome.org/jwestman/blueprint-compiler into formatter 2023-07-20 18:39:42 +02:00
James Westman
abc4e5de65 lsp: Add docs for Adw.Breakpoint 2023-07-16 16:52:51 -05:00
James Westman
cb1eb9ba44 lsp: Show better info on IdentLiteral hover
Instead of showing the documentation for the expected type, show the
signature of the referenced object.
2023-07-16 16:52:51 -05:00
James Westman
9ff76b65cc docs: Fix docs for accessibility properties 2023-07-16 16:52:51 -05:00
James Westman
c4fc4f3de8 docs: Fix bug with colliding names
Often a vfunc has the same name as a signal, and the wrong docs would be
shown.
2023-07-16 16:52:51 -05:00
James Westman
e1b7410e51 docs: Add link to online documentation 2023-07-16 16:52:51 -05:00
James Westman
4eaf735732 gir: Fix signatures for properties and signals
Add arguments to signal signatures and fix property signatures
2023-07-16 16:52:51 -05:00
gregorni
9ad177eea9 Run black 2023-07-16 11:50:12 +02:00
gregorni
9f959fa186 Add indent tracking to formatter 2023-07-16 11:47:47 +02:00