mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
remove extra reference
This commit is contained in:
parent
90ddac2033
commit
0276e92c5c
1 changed files with 3 additions and 2 deletions
|
|
@ -9,12 +9,13 @@ use gtk::{
|
||||||
TextTag,
|
TextTag,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Apply `ANSI` format to new buffer
|
/// Apply `ANSI`/`SGR` format to new buffer
|
||||||
pub fn format(source_code: &str) -> Vec<(TextTag, String)> {
|
pub fn format(source_code: &str) -> Vec<(TextTag, String)> {
|
||||||
// Init new line buffer
|
// Init new line buffer
|
||||||
let mut buffer = Vec::new();
|
let mut buffer = Vec::new();
|
||||||
|
|
||||||
for entity in categorise_text(&source_code) {
|
// Begin entities parse
|
||||||
|
for entity in categorise_text(source_code) {
|
||||||
// Create new tag from default preset
|
// Create new tag from default preset
|
||||||
let tag = Tag::new();
|
let tag = Tag::new();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue