rokucommunity / rokucommunity/brighterscript

Fails to flag nested named functions as a syntax error

Open
#746 0 comments 0 reactions 1 assignee View on GitHub

@TwitchBronBron is already working on this.

Since Nov 29, 2022.

bug LanguageServer
Dominant language
TypeScript
Stars
208
Forks
68
Avg merge
8h 39m
Merged PRs (30d)
39

Description

See the below example:

image

	function test() as dynamic
		function test2() as dynamic

			return true
		end function

		return true
	end function

When side loading I get the following compile error:
image

--- Syntax Error. (compile error &h02) in networking__lib0.brs(37)
--- Syntax Error. (compile error &h02) in networking__lib0.brs(40)
*** ERROR compiling NetworkService

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.