Commits

Jason McKesson committed 285d4ae

Parsing system adjusted.

Comments (0)

Files changed (2)

_ExtractEnums.lua

 		end
 	end},
 
+--This pattern is hit when we have a compatibility profile definition.
+	{pattern = "profile%:%s+compatibility", func = function(currState, matchArray)
+		currState.extDef.deprecated = "3.0";
+		currState.extDef.removed = "3.1";
+	end},
+
 --This pattern is hit when we reach an enumeration definition by hexadecimal value.
 	{["pattern"] = "(%S+)%s*=%s*(0x%x+)", ["func"] = function(currState, matchArray)
 		local enumEntry = FetchEnum(currState, matchArray[1]);

_ExtractFuncs.lua

 			table.insert(state.funcData.passthru, matchArray[1]);
 		end
 	end},
-	
+
 	--Front matter
 	{pattern = "(%S*):%s*(.*)", func = function(state, matchArray)
 		if(state.frontMatter) then
 		state.currFunc = CreateFunc(matchArray[1], matchArray[2]);
 		table.insert(state.funcData.functions, state.currFunc);
 	end},
+	
+	--Profile property
+	{pattern = "^\tprofile:%s+compatibility", func = function(state, matchArray)
+		state.currFunc.profile = "compatibility"
+		state.currFunc.deprecated = "3.1"
+	end},
 
 	--Parameter Properties
 	{pattern = "^\tparam%s+(%S*)%s+(.*)", func = function(state, matchArray)