Just now, I rewrited the python_language.cpp using the keywords and operators 
parser.



Currently, the PR rewrited the following languages:

+ Java

+ Scala

+ Python





---- On Sat, 2020-01-18 22:14:54 Darcy Shen via Texmacs-dev 
<texmacs-dev@gnu.org> wrote ----



## Keywords and Operators Parser
 Take Java for example, we define `java-keywords` and
      `java-operators` in `java-lang.scm`.
 
 The `keyword_parser` in `java_language.cpp` will load
      `java-keywords` when initialized, it will parse keywords and
      calculate the corresponding keyword group for proper color.
 
 The `keyword_parser` and `operator_parser` allow us to define
      keywords and operators in scheme, this is the killer feature.
 
 ## Ref
 https://savannah.gnu.org/patch/?9884





-------- Forwarded Message --------

Subject:

[patch #9884] Parser: keywords and operators parser on
              Java and Scala


Date:

Sat, 18 Jan 2020 09:11:00 -0500 (EST)


From:

Darcy Shen mailto:invalid.nore...@gnu.org


To:

Joris van der Hoeven mailto:vdhoe...@texmacs.org, Darcy
              Shen mailto:sad...@zoho.com, mailto:texmacs-dev@gnu.org, 
mailto:allou...@texmacs.org, mailto:texmacs-pa...@gnu.org








URL:

 https://savannah.gnu.org/patch/?9884

 

 Summary: Parser: keywords and operators parser on Java and

 Scala Project: GNU TeXmacs

 Submitted by: sadhen

 Submitted on: Sat 18 Jan 2020 10:10:59 PM CST

 Category: Editor

 Action: None

 Privacy: Public

 Assigned to: vdhoeven

 Originator Email: Open/Closed: Open

 Release: Discussion Lock: Any

 Fixed Release: Stable: 

 _______________________________________________________

 

 Details:

 

 see https://github.com/texmacs/texmacs/pull/35

 

 Use the following command to download the diff to /tmp/diff.

 

 

 wget https://github.com/texmacs/texmacs/pull/35.diff -O /tmp/diff

 

 

 

 

 

 _______________________________________________________

 

 Reply to this item at:

 

 https://savannah.gnu.org/patch/?9884

 

 _______________________________________________

 Message sent via Savannah

 https://savannah.gnu.org/

 

 



_______________________________________________

Texmacs-dev mailing list

Texmacs-dev@gnu.org

https://lists.gnu.org/mailman/listinfo/texmacs-dev
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to