[PR #380] Add support for Colored Parentheses #388

Open
opened 2026-05-06 13:17:09 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/UpsilonNumworks/Upsilon/pull/380
Author: @Oreig403
Created: 2/4/2025
Status: 🔄 Open

Base: upsilon-devHead: upsilon-dev


📝 Commits (6)

  • a39cb30 Support for colored parentheses
  • d8eb287 Add colored parentheses support in python
  • 3e7b37c Add colored parentheses support in python
  • 7564d9c Support for colored parentheses
  • 5c4c0e5 Added support for colored parentheses
  • f6e55a2 Added support for colored parentheses

📊 Changes

7 files changed (+227 additions, -12 deletions)

View changed files

📝 apps/code/Makefile (+1 -0)
apps/code/brackets.c (+103 -0)
apps/code/brackets.h (+30 -0)
📝 apps/code/python_text_area.cpp (+58 -5)
📝 apps/code/python_text_area.h (+1 -1)
📝 escher/include/escher/text_area.h (+5 -2)
📝 escher/src/text_area.cpp (+29 -4)

📄 Description

Added support for coloring matching parenthesis to different colors ( if no matching parenthesis then color in red),
Only quirk is that because the os can't allocate big buffers I had to rely on a static table for every unmatched parenthesis position (so their is a theoretical limit to the number of parenthesis the program will color correctly).
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/UpsilonNumworks/Upsilon/pull/380 **Author:** [@Oreig403](https://github.com/Oreig403) **Created:** 2/4/2025 **Status:** 🔄 Open **Base:** `upsilon-dev` ← **Head:** `upsilon-dev` --- ### 📝 Commits (6) - [`a39cb30`](https://github.com/UpsilonNumworks/Upsilon/commit/a39cb30602dda15ae9cf2a6908929fed5eb9d0de) Support for colored parentheses - [`d8eb287`](https://github.com/UpsilonNumworks/Upsilon/commit/d8eb287e4d7a86c29d1e9f04098005a61ed5edea) Add colored parentheses support in python - [`3e7b37c`](https://github.com/UpsilonNumworks/Upsilon/commit/3e7b37c53283ca7596490bfda631d8723ca0b0e7) Add colored parentheses support in python - [`7564d9c`](https://github.com/UpsilonNumworks/Upsilon/commit/7564d9ce34b9c89b620e05e9ad266e4a7e80eef1) Support for colored parentheses - [`5c4c0e5`](https://github.com/UpsilonNumworks/Upsilon/commit/5c4c0e509e7cdcb0b05b26f7697983390ffcd79c) Added support for colored parentheses - [`f6e55a2`](https://github.com/UpsilonNumworks/Upsilon/commit/f6e55a2550b0146b493aa369311afec5836c6e57) Added support for colored parentheses ### 📊 Changes **7 files changed** (+227 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `apps/code/Makefile` (+1 -0) ➕ `apps/code/brackets.c` (+103 -0) ➕ `apps/code/brackets.h` (+30 -0) 📝 `apps/code/python_text_area.cpp` (+58 -5) 📝 `apps/code/python_text_area.h` (+1 -1) 📝 `escher/include/escher/text_area.h` (+5 -2) 📝 `escher/src/text_area.cpp` (+29 -4) </details> ### 📄 Description Added support for coloring matching parenthesis to different colors ( if no matching parenthesis then color in red), Only quirk is that because the os can't allocate big buffers I had to rely on a static table for every unmatched parenthesis position (so their is a theoretical limit to the number of parenthesis the program will color correctly). ![image](https://github.com/user-attachments/assets/496624da-a5c9-4079-ab38-dc5757c64cea) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#388
No description provided.