Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash Function List fails when function begins with a comment and the file EOL Conversion is Unix (LF) #13850

Open
RobMahn opened this issue Jun 30, 2023 · 0 comments

Comments

@RobMahn
Copy link

RobMahn commented Jun 30, 2023

Description of the Issue

The bash Function List fails to list functions that begin with a comment and the file EOL Conversion is Unix (LF)

This could be related to Fix exclude functions in comment zones #12799

Steps to Reproduce the Issue

  1. Create a bash script and set the EOL Conversion to Unix (LF)
  2. Add a function that begins with a comment.
function broken_function_list {
	# function begins with comment and EOL Conversion is set to Unix (LF)
}

function work_around { :
	# work around to begin function with null command
}

image

Expected Behavior

All functions would be displayed

Actual Behavior

The functions that begin with a comment are not displayed in the Function List, but only when the EOL Conversion is set to Unix (LS)

Debug Information

Notepad++ v8.5.4 (64-bit)
Build time : Jun 17 2023 - 20:42:45
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "D:\Notepad_Test.sh"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 22H2
OS Build : 22621.1848
Current ANSI codepage : 1252
Plugins :
ComparePlugin (2.0.2)
ComparePlus (1.1)
HexEditor (0.9.12)
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant