Commit Graph

53 Commits

Author SHA1 Message Date
Marc Bernard
0525d01394
SFPF: Add syntax highlighting for xdp files (#7040)
Some checks are pending
main-build / build-merged (push) Waiting to run
main-build / auto-tag (push) Waiting to run
main-build / auto-tag-artifact (push) Blocked by required conditions
main-build / coverage (push) Waiting to run
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2024-09-05 10:31:43 +02:00
francisco-milan
bac2666e51
Fix typos and adjust comments within the codebase (Cont'd) (#6786) 2024-02-01 08:21:41 +01:00
francisco-milan
01df9ce948
Fix typos and adjust comments within the codebase (Cont'd). (#6780)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2024-01-30 06:36:46 +01:00
Marc Bernard
b4a2a49cb8
Fix highlighting in case of back quotes (#6059)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2023-02-10 09:47:57 +01:00
Marc Bernard
762b0dd3bd
Escape output for plain text highlighter (#6058)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2023-02-10 09:32:55 +01:00
Marc Bernard
24e79943f5
Update object descriptions - Part 2 (#6019) 2023-02-02 09:03:51 +01:00
Marc Bernard
4f707010df
Fix syntax highlight for XML, CSS, JS (#5971) 2023-01-06 08:28:38 +01:00
Marc Bernard
ff573fd4d6
Fix syntax highlighting for xml and html (#5851)
* Fix syntax highlight for xml and html

The parsing was not correct if an xml/html attribute value contains one or more `=` sign.

Before:


After:

* Unit test
2022-11-04 08:35:35 -04:00
Marc Bernard
787bc605b0
Propagate codepage conversion errors (#5638) 2022-06-23 07:12:25 +02:00
Marc Bernard
ad1808cc72
Improve JSON syntax highlighter (#5450) 2022-04-08 11:12:36 +02:00
Marc Bernard
995e77e949
Visualize difference for EOF (#5404) 2022-03-25 06:58:33 +01:00
Lars Hvam
0db2c9c085
unit testing updates (#5266) 2022-01-18 10:41:10 +01:00
Marc Bernard
8f28a1aab3
Adjust syntax highlighter output (#5128)
* Adjust syntax highlighter output

Minor adjustment to output of syntax highlighter. There's no need to escape quotes, so `e_html_text` is sufficient.

PS: Change will make implementing "Highlight parts where a changed line is changed" a bit easier (#2804)

* Adjust tests

* Update abap_transpile.json

* Update test case

* Revert

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-11-12 06:55:02 +01:00
Marc Bernard
53951dc2ad
Remove more unused variables (#5112)
* Remove more unused variables

* rm

* rm

* rm

* rm

* needed for refactor later

* rm

* Needed for callback

* rm

* rm

* Pragma

* rm enho

* rm

* rm

* Setting unused_variables

* Revert unused_variables setting

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-11-09 16:22:29 +01:00
Lars Hvam
e7e8af832e
align package descripions (#4939)
prefix all package descriptions with "abapGit - "
2021-09-10 10:58:36 -04:00
Lars Hvam
a884259f6d
use fewer DDIC types (#4757) 2021-05-12 18:16:31 +02:00
Lars Hvam
704198f521
unit testing test (#4345)
* update deps

* update deps

* remove CHAR01 usages

* update deps

* update deps

* update deps

* all unit tests in syntax now running!

* update deps

* update deps

* update deps

* enable additional exception unit tests

* zcl_abapgit_string_map running

* upd

* login manager running

* update deps, add progress clas

* upd

* update deps

* fix whitespace

* update deps

* upd

* update deps

* update deps

* update deps

* use cl_abap newline

* upd

* run more

* sort

* update deps

* add intf

* update deps

* upd

* add zcl_abapgit_exit

* some xml interfaces

* zcl_abapgit_version running
2020-12-27 18:00:59 +01:00
Lars Hvam
e6ef63a489
unit testing test (#4326)
* unit testing test

* update deps

* update deps

* update deps

* update deps

* update deps

* update deps

* upd

* remove empty keyword

* update deps

* update deps

* whitespace

* update deps
2020-12-20 10:42:28 +01:00
Lars Hvam
643db383b0
syntax: move unit tests (#4333)
syntax highligting, move unit tests for abap to abap class, xml to xml class

this avoids having cyclic references, previously HIGHLIGTER called FACTORY which instantiated ABAP which inherited from HIGHLIGTER
2020-12-15 16:31:20 +01:00
Marc Bernard
07cdc0e0e8
Resolve circular reference in /syntax/ (#4292)
Closes #4258

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-07 09:13:58 +01:00
Marc Bernard
4a2752d467
Fix syntax highlighter (#4238)
- Fix regression XML highlighter
- Adjust UTs for syntax highlighter due to added keywords


Closes #4232

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-11-25 09:39:17 +01:00
Marc Bernard
5df956a37a
Toggle display of hidden characters on diff page (#4136)
* Toggle display of hidden characters on diff page

Time for something new...

I added a toggle switch to the diff page that allows you to show otherwise hidden characters.
- CR end-of-line 
- Spaces
- Tabs
- Byte-order-mark

Closes https://github.com/abapGit/abapGit/issues/2124
Closes https://github.com/abapGit/abapGit/issues/3676
Improves https://github.com/abapGit/abapGit/issues/2804

* Add ini

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-11-07 09:54:38 +01:00
Marc Bernard
bdc44f7476
Remove self-references (#4115)
* Remove self-references

Remove unnecessary self-references (me->)

https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#omit-the-self-reference-me-when-calling-an-instance-method

* 702: Fix syntax error

No chaining with EXPORTING & CHANGING

* remove addiontal me, update abaplint config

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-11-02 09:25:27 +01:00
g-back
42f52990e5
ABAP Syntax Highligher: Re-Add New Keywords (#4047)
* add minimal unit test

* readd new keywords to abap syntax highlighter


- removed duplicates from keywords
- removed deprecated pseudo comment
- explicitly remove duplicates from keywords to avoid needless dumps

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-10-19 15:20:17 +02:00
Lars Hvam
356d382723
rollback syntax highlighter changes (#4045)
* rollback syntax highlighter changes

it contains duplicates, resulting in dump

closes #4044

* Update zcl_abapgit_syntax_abap.clas.abap
2020-10-19 09:46:58 +02:00
Marc Bernard
bd46ab764c
Update of ABAP syntax highlighter (#4042)
Some clean-up and additions based on https://github.com/microsoft/monaco-languages/pull/112

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-10-18 09:10:35 +02:00
Lars Hvam
03724484f1
use boolc (#3920) 2020-09-23 12:28:13 +02:00
Lars Hvam
9c41a2b7d8
remove text pragmas and pseudo comments (#3827)
* remove text pragmas and pseudo comments

* fix whitespace

* fix carriage return

* test

* test

* Update zcl_abapgit_repo.clas.abap
2020-09-03 09:13:47 +02:00
Marc Bernard
941407b194
Avoid parsing empty lines in syntax highlighter (#3483)
* Performance 

Avoid parsing empty lines

* Avoid parsing empty lines in syntax highlighter

* Empty or whitespace

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-06-13 09:47:25 +02:00
Lars Hvam
d36b43defe
line break parameters (#3444)
* line break parameters

* Update zcl_abapgit_gui_page_repo_sett.clas.abap

* Update zcl_abapgit_gui_page_repo_sett.clas.abap

* fix
2020-06-04 15:10:35 +02:00
Marc Bernard
2e2b8584fb
New syntax-highlighters for CSS, JS, JSON (#3381)
* Add syntax-highlighters for CSS, JS, JSON

* Update W3MI ZABAPGIT_CSS_THEME_DEFAULT

* Fix line size and case statement

* Fix line size

* Update styles, removed operators

* Added highlight for comments in HTML/XML

* Fix menu hover background

This makes the selected menu more visible. 

Also includes color fix for repo name and url in dark theme.

* Fix for W3xx objects with "." in name

* Reverse fix for W3xx

* Remove hover style changes

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-05-25 06:29:03 +02:00
Frederik Hudák
31a912b124
Use xml syntax highlighter for html as well (#3251)
I came upon a `w3ht.data.html` object without syntax highlighting. We can reuse the xml highlighter for html.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-03-11 16:46:21 +01:00
Lars Hvam
eb7e819b25 refactoring, delete unused variables and methods (#3203)
* zlib

* xml

* processor

* shi5

* remove unused filter parameter

* pinf cleanup

* ssfo delete empty method

* highlighter

* gui page res, remove unused

* remove unused in diff class

* adt link

* gui, remove 2 unused parameters

* branch overview
2020-02-09 09:38:17 +01:00
g-back
3f00ed06d7
replace macros with methods (#3183) 2020-01-30 07:48:40 +01:00
Lars Hvam
1dbd4d1912
Refactoring types (#2785)
* align use less different types

* refactor

* updates
2019-07-15 09:33:37 -07:00
Lars Hvam
f6e8332754
Cleanup (#2753)
* refactor IF

* fix some indentation

* indentation fixes

* indentation fixes

* indentation

* indentation
2019-06-25 03:02:51 -07:00
Lars Hvam
7bbaf069e2
File format update collection (#2605)
* File format update - changed object handler

I removed the following fields:

CLAS
VSEOCLASS-VERSION

INTF
VSEOINTERF-VERSION

PROG
PROGDIR-STATE

DCLS
AS4LOCAL
ABAP_LANGUAGE_VERSION (if exists)

DDLS
ABAP_LANGUAGE_VERSION (if exists)

DDLX
VERSION
RESPONSIBLE
MASTER_SYSTEM

MSAG
DOKIL-DOKSTATE

ENQU
DD25V-AS4LOCAL
DD25V-AS4VERS

* fix syntax error

* also clear PROG VARCL

* update XML files
2019-03-31 01:17:46 -07:00
Lars Hvam
5b6cc04159
use RETURNING instead of EXPORTING (#2533)
* READ_FILE use returning instead of exporting

* PARSE_LINE, use returning instead of exporting
2019-03-16 03:33:17 -07:00
larshp
08c6ef3dbb fix names, close #2222 2018-12-24 09:19:01 +01:00
Eduardo Ferrari Copat
d47027ad6c Remove redundant class and interface metadata (#2195)
* Remove CLSFINAL from VSEOCLASS serialization

* Remove EXPOSURE from VSEOCLASS serialization

* Remove clsabstrct from VSEOCLASS serialization

* Remove EXPOSURE from VSEOINTERF serialization

* Revert "Remove EXPOSURE from VSEOINTERF serialization"

This reverts commit 4036b7d015.
2018-12-12 14:31:42 +01:00
Lars Hvam
fa39fcd43f
Code inspector fixes (#1997)
* pretty print

* definitions to top of routine

* space before .

* omit parameter names where possible

* double space after if

* remove pseudo comments where possible
2018-10-12 07:56:27 +02:00
Marcello Urbani
af8a7abb9c fixed issue #1799 (dump for < or > in attributes) (#1923)
* fixed issue #1799 (dump for  < or > in attributes)

* added unit tests and extended support
2018-09-16 18:23:52 +02:00
Johannes Konings
6ddd20e2b5 fix some naming convention #1132 (#1771)
* fix some naming convention

https://github.com/larshp/abapGit/issues/1132

* fix abaplint Reduce line length

https://github.com/larshp/abapGit/pull/1771
2018-08-06 13:10:03 +02:00
Frederik Hudák
26c6f4b4dc Removed endmethod and endclass comments - folders syntax, zlib, xml 2018-08-03 13:33:33 +02:00
Frederik Hudák
34a65ba8e4 Removed unnecessary default comments from testclasses 2018-08-03 13:32:57 +02:00
Lars Hvam
62580af494
Omit parameter name where possible (#1704)
* zcl_abapgit_2fa_github_auth omit parameter name

* ecatt omit parameter names

* zcl_abapgit_ecatt_script_downl pretty print

* zcl_abapgit_ecatt_script_downl omit parameter name

* zcl_abapgit_ecatt_val_obj_upl omit parameter name

* zcl_abapgit_file_status omit parameter name

* zcl_abapgit_gui omit parameter name

* zcl_abapgit_gui_page_boverview omit parameter name

* zcl_abapgit_syntax_highlighter omit parameter name
2018-07-28 07:25:28 +02:00
Lars Hvam
4417c3257c
Merge pull request #1445 from christianguenter2/1408
fix format empty xml attributes
2018-06-04 15:12:41 +02:00
Lars Hvam
10dbd74f57
Minor changes (#1442)
* remove try without catch

* reduce nesting

* reduce nesting

* reduce line length
2018-06-04 15:12:03 +02:00
Christian Guenter
6812fd56f6 fix format empty xml attributes 2018-06-04 09:38:40 +02:00
Christian Guenter
387b8b9cc2 fix xml syntax for sole closing tag 2018-06-02 09:06:41 +02:00