Skip to content

Formatter gets lost with if (*variable) on ObjC

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When code contains a statement with something like if (*pointer == foo) then formatting shows as comments from then on.

Steps to reproduce

look at https://gitlab.com/-/snippets/2048381 - it contains code with the issue visible

Example Project

https://gitlab.com/-/snippets/2048381

What is the current bug behavior?

Highlighting is missing after that text

What is the expected correct behavior?

Highlight the code correctly

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 13.13.0 ? ... OK (13.13.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 6/2 ... yes 2/4 ... yes 7/5 ... yes 7/6 ... yes 11/7 ... yes 7/8 ... yes 2/9 ... yes 18/10 ... yes 18/11 ... yes 18/12 ... yes 18/13 ... yes 18/14 ... yes 2/15 ... yes 11/16 ... yes 11/17 ... yes 11/18 ... yes 2/19 ... yes 11/21 ... yes 11/23 ... yes 11/24 ... yes 11/25 ... yes 5/26 ... yes 11/28 ... yes 11/29 ... yes 5/30 ... yes 2/31 ... yes 11/32 ... yes 11/33 ... yes 11/34 ... yes 2/35 ... yes 2/36 ... yes 11/37 ... yes 2/38 ... yes 5/39 ... yes 11/40 ... yes 11/41 ... yes 11/42 ... yes 2/43 ... yes 5/44 ... yes 2/45 ... yes 5/46 ... yes 5/47 ... yes 5/48 ... yes 5/49 ... yes 5/50 ... yes 2/51 ... yes 2/52 ... yes 5/53 ... yes 5/54 ... yes 2/55 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.7.2) Git version >= 2.29.0 ? ... yes (2.29.0) Git user has default SSH configuration? ... yes Active users: ... 18 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x (6.4 - 6.x deprecated to be removed in 13.8)? ... yes (7.6.1)

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

Edited by 🤖 GitLab Bot 🤖